The NChartGridControl is data aware, which means that it is able to display the data series with the appropriate DataGridColumnStyle editor. For example if you want to create a date time chart, which displays the standard date time picker for editing, you just have to set the value formatter of the respective XValues data series to NDateTimeValueFormatter with DateTimeValueFormat.Date. For example:
C# |
Copy Code
|
---|---|
lineSeries.XValues.ValueFormatter = new NDateTimeValueFormatter(DateTimeValueFormat.Date);
|
Visual Basic |
Copy Code
|
---|---|
lineSeries.XValues.ValueFormatter = New NDateTimeValueFormatter(DateTimeValueFormat.Date)
|
Data series of type FillStyle are edited with the NDataGridFillStyleColumnStyle, which embeds the standard fill style editor.
Data series of type StrokeStyle are edited with the NDataGridStrokeStyleColumnStyle, which embeds the standard stroke style editor.
Data series of type InteractivityStyle are edited with the NDataGridInteractivityStyleColumnStyle, which embeds the standard interactivity style editor.
Data series of type MarkerStyle are edited with the NDataGridMarkerStyleColumnStyle, which embeds the standard interactivity style editor.
Data series of type DataLabelStyle are edited with the NDataGridDataLabelStyleColumnStyle, which embeds the standard interactivity style editor.