xmCHART 3.4 - Reference
Last updated: 2010-06-05

 
Structures back functions constants

 
  Minimum structure of xmCHART scripts
     
   

OpenDrawing(width;height)

// set up chart

CloseDrawing() // not required

     
  Minimum structure of xmCHART scripts
     
   

OpenDrawing(width;height)

// not required if only 1 chart
OpenChart(left;top;width;height;isPlotArea)

// set up chart

CloseChart() // not required if only 1 chart

CloseDrawing() // not required

     
  General structure of xmCHART scripts
     
   

OpenDrawing(width;height)

OpenView(left;top;width;height) // not required if only 1 view

// not required if only 1 chart
OpenChart(left;top;width;height;isPlotArea)

// set up chart 1

CloseChart() // not required if only 1 chart

// multiple charts possible (e.g. overlay charts)
OpenChart(left;top;width;height;isPlotArea)

// set up chart 2

CloseChart()

CloseView() // not required if only 1 view

// multiple views are possible
OpenView(left;top;width;height)

// nested views are possible
OpenView(left;top;width;height)

// set up charts, etc.

CloseView()

CloseView()

CloseDrawing() // not required

     
     
  Example 1
     
   

OpenDrawing(400;300)
ChartData(3 6 12 4 3;7 8 2 14)
BarChart()
CloseDrawing() // not required

     
  Example 2
     
   

OpenDrawing(400;300)
OpenChart(50;50;350;250;on)
ChartData(3 6 12 4 3;7 8 2 14)
PieChart()
PieChartExplodes(5;all) // chart option functions after chart function!
CloseDrawing()

     
  Example 3
     
   

OpenDrawing(400;300)

// define chart 1

OpenChart(50;50;350;250;on)
ChartData(7 16 12 14 8)
BarChart()
Scaling(y;linear;0;20;10)
CloseChart()

// define chart 2 (overlay)

OpenChart(50;50;350;250;on)
ChartData(10 12 9 10 13)
LineChart(;on)
Scaling(y;linear;0;20;10)
LineStyle(1;poly;2;blue)
AxisOptions(y;none) // hide axes
MajorGridLineWidths(all;all;0) // hide grid
CloseChart()

CloseDrawing()


©2010 X2max Software back functions constants