We help IT Professionals succeed at work.
Get Started

Normalising data and Actual data for Tooltip

AndyC1000
AndyC1000 asked
on
328 Views
Last Modified: 2012-05-10
Hello,

Working on normalising data to plot on MSChartControls Radar chart.

Found an example -
a+ (X-A)(b-a)/(B-A)

Where:
A - Min of your dataset
B - Max of your dataset
a - Min of normalised dataset
b - Max of normalised dataset
X - the value

I need to also keep track of the actual values what will appear on a tooltip.  

Currently this is how I populate the radar chart with the actual values -

for (int i = 0; i < seriesArray.Length; i++)
{
System.Windows.Forms.DataVisualization.Charting.Series series =
new System.Windows.Forms.DataVisualization.Charting.Series();
series.ChartArea = "Default";
series.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Radar;
if (colourIndex >= colours.Length)
{
colourIndex = 0;
}
series.Color = colours[colourIndex++];
series.Legend = "Default";
series.Name = "Series" + i;
series.ShadowOffset = 1;
series["RadarDrawingStyle"] = "Line"; // Radar chart style (Area, Line or Marker)
series["AreaDrawingStyle"] = "Circle"; // Circular area drawing style (Circle)
series["CircularLabelsStyle"] = "Horizontal"; // Labels style (Auto, Horizontal, Circular or Radial)

for (int j = 0; j < labels.Length; j++ )
{
string l = labels[j];
} 
series.Points.DataBindXY(labels, seriesArray[i]);
this.chart1.Series.Add(series);

Open in new window


I'm not sure about the best way to keep track of both these datasets.

Thanks, AC
Comment
Watch Question
Freelance programmer / Consultant
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE