Difference between revisions of "ChartView"
From Jeremie Leroy - XOJO Controls Wiki
(→Defining the default colors) |
(→Changing display options when loading Data) |
||
Line 159: | Line 159: | ||
The ChartView automatically refreshes the display.<br> | The ChartView automatically refreshes the display.<br> | ||
− | If you need to edit the display before refreshing, you can use the | + | If you need to edit the display before refreshing, you can use the '''Freeze''' property to prevent refreshing: |
==See Also== | ==See Also== | ||
[[ChartAxis]], [[ChartHelpTag]], [[ChartLabel]], [[ChartLine]], [[ChartMarkLine]], [[ChartPlot]], [[ChartSerie]] classes. | [[ChartAxis]], [[ChartHelpTag]], [[ChartLabel]], [[ChartLine]], [[ChartMarkLine]], [[ChartPlot]], [[ChartSerie]] classes. |
Revision as of 12:33, 15 May 2013
Events |
AnimationFinished |
GetFillPicture |
GetHelpTag |
Open |
Methods | |
AddMark | Redisplay |
AddSerie | setDataLabel |
ExportAsPicture | setDefaultColors |
Init | setTransparency |
LoadFromCSV | StartAnimation |
LoadFromDB | ToCSV |
LoadFromListbox | |
Redisplay |
Shared Methods |
Register |
Contents
History
Version 1.1 - Not Released
- New:
- Chart Types: ComboChart
- Improved HelpTags and LineSmooth performance
- AnimationFinished event
Version 1.0 - Released 2013-05-06
First public release of the ChartView
- Features:
- Chart Types:
- Column, ColumnStacked, ColumnStacked100
- Line, LineStacked, LineSmooth
- Area, AreaStacked, AreaStepped
- Chart Types:
Notes
Defining the default colors
The default colors for each Chartserie is entirely customizable.
- The quick way:
In the ChartView.open event use one of the following lines:
me.setDefaultColors = me.PaletteGoogle me.setDefaultColors = me.PaletteOffice2010 me.setDefaultColors = me.PaletteWindows8
- The advanced way:
In the ChartView.open event:
Redim me.DefaultColors(-1) //Deleting all DefaultColors me.DefaultColors.append &cFF0000 //red me.DefaultColors.append &c00FF00 //green me.DefaultColors.append &cFF0000 //purple ... If f is Nil or f.Exists = False then MsgBox("Ressource files are missing") Return End If test=250
Changing display options when loading Data
When using one of the following functions:
- LoadFromCSV
- LoadFromDB
- LoadFromListbox
The ChartView automatically refreshes the display.
If you need to edit the display before refreshing, you can use the Freeze property to prevent refreshing:
See Also
ChartAxis, ChartHelpTag, ChartLabel, ChartLine, ChartMarkLine, ChartPlot, ChartSerie classes.