Difference between revisions of "ChartView"

From Jeremie Leroy - XOJO Controls Wiki
Jump to: navigation, search
(Defining the default colors)
(Defining the default colors)
Line 130: Line 130:
 
[code]<nowiki>Insert non-formatted text here</nowiki>
 
[code]<nowiki>Insert non-formatted text here</nowiki>
 
me.setDefaultColors = me.PaletteGoogle
 
me.setDefaultColors = me.PaletteGoogle
 +
 
me.setDefaultColors = me.PaletteOffice2010
 
me.setDefaultColors = me.PaletteOffice2010
 +
 
me.setDefaultColors = me.PaletteWindows8
 
me.setDefaultColors = me.PaletteWindows8
 
[/code]
 
[/code]
Line 140: Line 142:
 
[code]
 
[code]
 
Redim me.DefaultColors(-1) //Deleting all DefaultColors
 
Redim me.DefaultColors(-1) //Deleting all DefaultColors
 +
 
me.DefaultColors.append &cFF0000 //red
 
me.DefaultColors.append &cFF0000 //red
 +
 
me.DefaultColors.append &c00FF00 //green
 
me.DefaultColors.append &c00FF00 //green
 +
 
me.DefaultColors.append &cFF0000 //purple
 
me.DefaultColors.append &cFF0000 //purple
 
...
 
...

Revision as of 17:08, 14 May 2013


Events
AnimationFinished
GetFillPicture
GetHelpTag
Open


Properties
Animate CrossesBetweenTickMarks Marks
AnimationHorizontal DataLabel MonthNames
AnimationTime DayNames Plot
Axes DefaultColors Series
BackgroundColor Freeze Title
BackgroundType LastError Type
Border Legend
BorderColor LegendPosition
Continuous LiveRefresh


Methods
AddMark Redisplay
AddSerie setDataLabel
ExportAsPicture setDefaultColors
Init setTransparency
LoadFromCSV StartAnimation
LoadFromDB ToCSV
LoadFromListbox
Redisplay


Shared Methods
Register


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

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:

[code]Insert non-formatted text here me.setDefaultColors = me.PaletteGoogle

me.setDefaultColors = me.PaletteOffice2010

me.setDefaultColors = me.PaletteWindows8 [/code]


  • The advanced way:

In the ChartView.open event:

[code] Redim me.DefaultColors(-1) //Deleting all DefaultColors

me.DefaultColors.append &cFF0000 //red

me.DefaultColors.append &c00FF00 //green

me.DefaultColors.append &cFF0000 //purple ... [/code]

See Also

ChartAxis, ChartHelpTag, ChartLabel, ChartLine, ChartMarkLine, ChartPlot, ChartSerie classes.