Profile Picture

How to show datagrid in nevron chart?

Posted By Jacky zhang 13 Years Ago
Author
Message
Jacky zhang
Posted 13 Years Ago
View Quick Profile
Junior Member

Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)

Group: Forum Members
Last Active: 10 Years Ago
Posts: 16, Visits: 1

Hi,

How to show a datagrid data in nevron chart?

Does anyone can give me a sample?

thanks,

-Jacky

 

 



Nevron Support
Posted 13 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi Jacky,

You can take a look at the following example shipped with the component:
Chart WinForm >> All Examples >> User Interface >> Chart Data Grid



Best Regards,
Nevron Support Team



Jacky zhang
Posted 13 Years Ago
View Quick Profile
Junior Member

Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)

Group: Forum Members
Last Active: 10 Years Ago
Posts: 16, Visits: 1

hi,

In the Sample: Chart WinForm >> All Examples >> User Interface >> Chart Data Grid

It can change different color in the bar, but I didn't see any source code with this part.

If I use MultiBarMode.Series in 3D mode , can I use different color for erach bar?

thanks

-Jacky



Nevron Support
Posted 13 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi Jacky,

The data grid is operating in unbound mode by default- that's why making changes on the series data does not produce any changes in the control. To bind it to the chart you have to press the bind button (the last one next to selected series (there is a problem with the  image resources there which will be fixed in the upcoming SP). Regarding per data point fill styles - the following code snippet shows how to assign color to different bars:

NChart chart = nChartControl1.Charts[0];
chart.BoundsMode =
BoundsMode.Stretch;

NBarSeries bar = new NBarSeries();
bar.Values.Add(10);
bar.Values.Add(20);
bar.Values.Add(30);

bar.FillStyles[0] = new NColorFillStyle(Color.Red);
bar.FillStyles[1] =
new NColorFillStyle(Color.Green);
bar.FillStyles[2] =
new NColorFillStyle(Color.Blue);

chart.Series.Add(bar);


 

 



Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic