351
|
Is it possible to reorder just the series by drag and drop
public void init()
{
COM com_Serie,com_Serie1,com_Series;
anytype var_Serie,var_Serie1,var_Series;
;
super();
exgraph1.BeginUpdate();
exgraph1.AutoFit(true);
exgraph1.AllowMoveValue(257/*0x101 | exLeftClick*/);
exgraph1.CategoryAxis().MajorGridLines().Color("lightgray");
var_Series = exgraph1.Series(); com_Series = var_Series;
var_Serie = com_Series.Add("Electronics(350),Clothing(200),Books(150)",COMVariant::createFromInt(2001)); com_Serie = var_Serie;
com_Serie.Stack("A");
com_Serie.ShowValue(1/*exPoint*/);
var_Serie1 = com_Series.Add("Electronics(500),Clothing(150),Books(180)",COMVariant::createFromInt(2002)); com_Serie1 = var_Serie1;
com_Serie1.Stack("A");
com_Serie1.ShowValue(1/*exPoint*/);
exgraph1.ValuePoint("16,white,black");
exgraph1.Legend().Visible(true);
exgraph1.EndUpdate();
}
|
350
|
Is it possible to reorder just the values by drag and drop (method 2)
public void init()
{
COM com_Serie,com_Serie1,com_Series;
anytype var_Serie,var_Serie1,var_Series;
;
super();
exgraph1.BeginUpdate();
exgraph1.AutoFit(true);
exgraph1.AllowMoveValue(513/*0x201 | exLeftClick*/);
exgraph1.CategoryAxis().MajorGridLines().Color("lightgray");
var_Series = exgraph1.Series(); com_Series = var_Series;
var_Serie = com_Series.Add("Electronics(350),Clothing(200),Books(150)",COMVariant::createFromInt(2001)); com_Serie = var_Serie;
com_Serie.Stack("A");
com_Serie.ShowValue(1/*exPoint*/);
var_Serie1 = com_Series.Add("Electronics(500),Clothing(150),Books(180)",COMVariant::createFromInt(2002)); com_Serie1 = var_Serie1;
com_Serie1.Stack("A");
com_Serie1.ShowValue(1/*exPoint*/);
exgraph1.ValuePoint("16,white,black");
exgraph1.Legend().Visible(true);
exgraph1.EndUpdate();
}
|
349
|
Is it possible to reorder just the values by drag and drop (method 1)
public void init()
{
COM com_Serie,com_Serie1,com_Series;
anytype var_Serie,var_Serie1,var_Series;
;
super();
exgraph1.BeginUpdate();
exgraph1.AutoFit(true);
exgraph1.AllowMoveValue(1/*exLeftClick*/);
exgraph1.CategoryAxis().MajorGridLines().Color("lightgray");
var_Series = exgraph1.Series(); com_Series = var_Series;
var_Serie = com_Series.Add("Electronics(350),Clothing(200),Books(150)",COMVariant::createFromInt(2001)); com_Serie = var_Serie;
com_Serie.Stack("A");
var_Serie1 = com_Series.Add("Electronics(500),Clothing(150),Books(180)",COMVariant::createFromInt(2002)); com_Serie1 = var_Serie1;
com_Serie1.Stack("A");
com_Serie1.ShowValue(1/*exPoint*/);
exgraph1.ValuePoint("16,white,black");
exgraph1.Legend().Visible(true);
exgraph1.EndUpdate();
}
|
348
|
Is it possible to reorder the series and values by drag and drop
public void init()
{
COM com_Serie,com_Serie1,com_Series;
anytype var_Serie,var_Serie1,var_Series;
;
super();
exgraph1.BeginUpdate();
exgraph1.AutoFit(true);
exgraph1.AllowMoveValue(1/*exLeftClick*/);
exgraph1.CategoryAxis().MajorGridLines().Color("lightgray");
var_Series = exgraph1.Series(); com_Series = var_Series;
var_Serie = com_Series.Add("Electronics(350),Clothing(200),Books(150)",COMVariant::createFromInt(2001)); com_Serie = var_Serie;
com_Serie.Stack("A");
com_Serie.ShowValue(1/*exPoint*/);
var_Serie1 = com_Series.Add("Electronics(500),Clothing(150),Books(180)",COMVariant::createFromInt(2002)); com_Serie1 = var_Serie1;
com_Serie1.Stack("A");
com_Serie1.ShowValue(1/*exPoint*/);
exgraph1.ValuePoint("16,white,black");
exgraph1.Legend().Visible(true);
exgraph1.EndUpdate();
}
|
347
|
Is it possible to reorder the values by drag and drop
public void init()
{
COM com_Serie;
anytype var_Serie;
str var_s,var_s1;
;
super();
exgraph1.BeginUpdate();
exgraph1.AutoFit(true);
exgraph1.ValueAxis().Format("value/100000");
var_s = "Tokyo(37833000), Delhi(30290000), Shanghai(27058000), São Paulo(22043000), Mumbai(20668000), Beijing(20384000), Karachi(20000000";
var_s = var_s + "), Dhaka(17072000), Istanbul(15029000), Los Angeles(13131000)";
var_s1 = "Tokyo(37833000), Delhi(30290000), Shanghai(27058000), São Paulo(22043000), Mumbai(20668000), Beijing(20384000), Karachi(20000000";
var_s1 = var_s1 + "), Dhaka(17072000), Istanbul(15029000), Los Angeles(13131000)";
var_Serie = exgraph1.Series().Add(COMVariant::createFromStr(var_s)); com_Serie = var_Serie;
com_Serie.ShowValue(1/*exPoint*/);
exgraph1.ValuePoint("12,white,black");
exgraph1.AllowMoveValue(1/*exLeftClick*/);
exgraph1.EndUpdate();
}
|
346
|
Reorder multiple values
public void init()
{
;
super();
exgraph1.BeginUpdate();
exgraph1.AutoFit(true);
exgraph1.MultiColorSerie(false);
exgraph1.Series().Add("1960(1.4),1980(11.2),2000(33.5),2010(65.8),2020(84.7)","GDP");
exgraph1.Order(",4,,3");
exgraph1.EndUpdate();
}
|
345
|
Move a value to an earlier or later position
public void init()
{
;
super();
exgraph1.BeginUpdate();
exgraph1.AutoFit(true);
exgraph1.MultiColorSerie(false);
exgraph1.Series().Add("1960(1.4),1980(11.2),2000(33.5),2010(65.8),2020(84.7)","GDP");
exgraph1.Order(",,3");
exgraph1.EndUpdate();
}
|
344
|
Place one value at a specified position
public void init()
{
;
super();
exgraph1.BeginUpdate();
exgraph1.AutoFit(true);
exgraph1.MultiColorSerie(false);
exgraph1.Series().Add("1960(1.4),1980(11.2),2000(33.5),2010(65.8),2020(84.7)","GDP");
exgraph1.Order("3");
exgraph1.EndUpdate();
}
|
343
|
Configure the Y-axis so that it always displays exactly 5 labels (fixed-ticks), regardless of the data range

public void init()
{
COM com_ValueAxis;
anytype var_ValueAxis;
;
super();
exgraph1.BeginUpdate();
exgraph1.AutoFit(true);
exgraph1.MultiColorSerie(false);
var_ValueAxis = exgraph1.ValueAxis(); com_ValueAxis = var_ValueAxis;
com_ValueAxis.AsPercent(true);
com_ValueAxis.MajorUnit(COMVariant::createFromReal(0.2));
com_ValueAxis.Format("value*5 array (``,`A`,`B`,`C`,`D`,`E`)");
exgraph1.Series().Add("1960(1.4),1980(11.2),2000(33.5),2010(65.8),2020(84.7)","GDP");
exgraph1.EndUpdate();
}
|
342
|
Define the style(solid, dash, dot, dash-dot, dash-dot-dot) of the line to show the serie

public void init()
{
COM com_Serie;
anytype var_Serie;
;
super();
exgraph1.BeginUpdate();
exgraph1.AutoFit(true);
var_Serie = COM::createFromObject(exgraph1.Series()).Add("1920(1.8),1945(2.3),1970(13.7),1995(5.7),2020(7.8)","Population"); com_Serie = var_Serie;
com_Serie.Type("Line");
com_Serie.Misc(8/*exLineStyle*/,COMVariant::createFromInt(2));
exgraph1.EndUpdate();
}
|
341
|
I'm using the logarithmic scale, but it's not displaying any values. How can I adjust the settings to show very small values

public void init()
{
COM com_Serie,com_ValueAxis;
anytype var_Serie,var_ValueAxis;
str sFormat;
;
super();
exgraph1.BeginUpdate();
sFormat = "(value and value < 1) ? (value format `%.1E` replace `-00` with ``) : (value format `0`)";
exgraph1.AutoFit(true);
exgraph1.Misc(32/*exEpsilon*/,COMVariant::createFromReal(0.000000001));
exgraph1.MultiColorSerie(false);
exgraph1.CategoryAxis().Format("`<bgcolor white>` + value");
var_ValueAxis = exgraph1.ValueAxis(); com_ValueAxis = var_ValueAxis;
com_ValueAxis.Type(1/*exLogarithmic*/);
com_ValueAxis.Format(sFormat);
com_ValueAxis.CursorFormat(sFormat);
var_Serie = COM::createFromObject(exgraph1.Series()).Add("12:54:28(3.14E-09),12:54:44(2.59E-09),13:03:53(4.25E-09),13:03:58(4.20E-09),13:05:00(5.10E-09),13:06:12(6.25E-09)"); com_Serie = var_Serie;
com_Serie.Type("line");
com_Serie.CursorFormat(sFormat);
exgraph1.Cursor().Visible(true);
exgraph1.EndUpdate();
}
|
340
|
My data contains no values below 1. How can I prevent the logarithmic value axis from displaying the range between 0 and 1

public void init()
{
COM com_Serie,com_ValueAxis;
anytype var_Serie,var_ValueAxis;
str var_s,var_s1;
;
super();
exgraph1.BeginUpdate();
exgraph1.AutoFit(true);
exgraph1.MultiColorSerie(false);
exgraph1.ValuePoint(",,,,,,,black,transparent");
exgraph1.CategoryAxis().Format("`<bgcolor white>` + value");
var_ValueAxis = exgraph1.ValueAxis(); com_ValueAxis = var_ValueAxis;
com_ValueAxis.Type(1/*exLogarithmic*/);
com_ValueAxis.Min(COMVariant::createFromInt(1));
com_ValueAxis.Format("value format `0`");
var_s = "Small village(8),Hamlet(14),Small town(22),Medium town(39),Growing town(2118),Small city(6523),Large city(31245),Capital city(43";
var_s = var_s + "1245),Mega city(65431245)";
var_s1 = "Small village(8),Hamlet(14),Small town(22),Medium town(39),Growing town(2118),Small city(6523),Large city(31245),Capital city(43";
var_s1 = var_s1 + "1245),Mega city(65431245)";
var_Serie = exgraph1.Series().Add(COMVariant::createFromStr(var_s)); com_Serie = var_Serie;
com_Serie.ShowValue(4/*exValue*/);
com_Serie.ValueFormat("`<fgcolor white> ` + (value format `0`) + ` `");
exgraph1.EndUpdate();
}
|
339
|
Display logarithmic scale

public void init()
{
COM com_ValueAxis;
anytype var_ValueAxis;
str var_s,var_s1;
;
super();
exgraph1.BeginUpdate();
exgraph1.AutoFit(true);
exgraph1.MultiColorSerie(false);
exgraph1.CategoryAxis().Format("`<bgcolor white>` + value");
var_ValueAxis = exgraph1.ValueAxis(); com_ValueAxis = var_ValueAxis;
com_ValueAxis.Type(1/*exLogarithmic*/);
com_ValueAxis.Format("value format `0`");
var_s = "Sterile Water(0.0001),Treated Tap Water(0.001),Bottled Water(0.01),Clean Pond(0.1),River(1),Swamp(100),Sewage(10000),Wastewater ";
var_s = var_s + "Treatment Inlet(1000000)";
var_s1 = "Sterile Water(0.0001),Treated Tap Water(0.001),Bottled Water(0.01),Clean Pond(0.1),River(1),Swamp(100),Sewage(10000),Wastewater ";
var_s1 = var_s1 + "Treatment Inlet(1000000)";
exgraph1.Series().Add(COMVariant::createFromStr(var_s)).CursorFormat("value < 1 ? value : (value format `0`) ");
exgraph1.Cursor().Visible(true);
exgraph1.EndUpdate();
}
|
338
|
Can the values be shown in scientific notation (e.g., 1E+4, 5E-10) rather than full decimal form

public void init()
{
COM com_Serie;
anytype var_Serie;
str var_s,var_s1;
;
super();
exgraph1.BeginUpdate();
exgraph1.AutoFit(true);
exgraph1.ValueAxis().Format("value/100000");
var_s = "Tokyo(37833000), Delhi(30290000), Shanghai(27058000), São Paulo(22043000), Mumbai(20668000), Beijing(20384000), Karachi(20000000";
var_s = var_s + "), Dhaka(17072000), Istanbul(15029000), Los Angeles(13131000)";
var_s1 = "Tokyo(37833000), Delhi(30290000), Shanghai(27058000), São Paulo(22043000), Mumbai(20668000), Beijing(20384000), Karachi(20000000";
var_s1 = var_s1 + "), Dhaka(17072000), Istanbul(15029000), Los Angeles(13131000)";
var_Serie = exgraph1.Series().Add(COMVariant::createFromStr(var_s)); com_Serie = var_Serie;
com_Serie.ShowValue(-1/*0xffffffff | exHideIfEmpty | exValue | exLine | exPoint*/);
com_Serie.ValueFormat("value format `%.1E` replace `+00` with `+`");
exgraph1.EndUpdate();
}
|
337
|
Highlight the value on both the chart and the axis

public void init()
{
COM com_Serie;
anytype var_Serie;
;
super();
exgraph1.BeginUpdate();
exgraph1.Import("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/aapl.txt");
exgraph1.SerieType("line");
var_Serie = COM::createFromObject(exgraph1.Series()).Add("open"); com_Serie = var_Serie;
com_Serie.Data("AAPL (open)");
exgraph1.ValueAxis().Mark("red[axis,chart](74.25-75.75),black[axis,chart](76.5)");
exgraph1.Refresh();
exgraph1.EndUpdate();
}
|
336
|
Highlight the categories on both the chart and the axis

public void init()
{
COM com_CategoryAxis,com_Serie;
anytype var_CategoryAxis,var_Serie;
;
super();
exgraph1.BeginUpdate();
exgraph1.Import("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/aapl.txt");
exgraph1.SerieType("line");
exgraph1.ValueSize(6);
var_Serie = COM::createFromObject(exgraph1.Series()).Add("open"); com_Serie = var_Serie;
com_Serie.Data("AAPL (open)");
var_CategoryAxis = COM::createFromObject(exgraph1.CategoryAxes()).Add("0"); com_CategoryAxis = var_CategoryAxis;
com_CategoryAxis.Format("value left 7");
com_CategoryAxis.Split(true);
com_CategoryAxis.Mark("#F8F8F8[axis,chart](label = `2014-02`)");
exgraph1.Refresh();
exgraph1.EndUpdate();
}
|
335
|
Highlight values on axis only

public void init()
{
COM com_Serie;
anytype var_Serie;
;
super();
exgraph1.BeginUpdate();
exgraph1.Import("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/aapl.txt");
exgraph1.SerieType("line");
var_Serie = COM::createFromObject(exgraph1.Series()).Add("open"); com_Serie = var_Serie;
com_Serie.Data("AAPL (open)");
exgraph1.ValueAxis().Mark("red[axis](74.25-75.75),black[axis](76.5)");
exgraph1.Refresh();
exgraph1.EndUpdate();
}
|
334
|
Highlight the categories on axis only

public void init()
{
COM com_CategoryAxis,com_Serie;
anytype var_CategoryAxis,var_Serie;
;
super();
exgraph1.BeginUpdate();
exgraph1.Import("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/aapl.txt");
exgraph1.SerieType("line");
exgraph1.ValueSize(6);
var_Serie = COM::createFromObject(exgraph1.Series()).Add("open"); com_Serie = var_Serie;
com_Serie.Data("AAPL (open)");
var_CategoryAxis = COM::createFromObject(exgraph1.CategoryAxes()).Add("0"); com_CategoryAxis = var_CategoryAxis;
com_CategoryAxis.Format("value left 7");
com_CategoryAxis.Split(true);
com_CategoryAxis.Mark("#F8F8F8[axis](label = `2014-02`)");
exgraph1.Refresh();
exgraph1.EndUpdate();
}
|
333
|
Highlight values

public void init()
{
COM com_Serie;
anytype var_Serie;
;
super();
exgraph1.BeginUpdate();
exgraph1.Import("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/aapl.txt");
exgraph1.SerieType("line");
var_Serie = COM::createFromObject(exgraph1.Series()).Add("open"); com_Serie = var_Serie;
com_Serie.Data("AAPL (open)");
exgraph1.ValueAxis().Mark("red(74.25-75.75),black[chart,axis](76.5)");
exgraph1.Refresh();
exgraph1.EndUpdate();
}
|
332
|
Highlight the categories using an expression

public void init()
{
COM com_CategoryAxis,com_Serie;
anytype var_CategoryAxis,var_Serie;
;
super();
exgraph1.BeginUpdate();
exgraph1.Import("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/aapl.txt");
exgraph1.SerieType("line");
var_Serie = COM::createFromObject(exgraph1.Series()).Add("open"); com_Serie = var_Serie;
com_Serie.Data("AAPL (open)");
var_CategoryAxis = COM::createFromObject(exgraph1.CategoryAxes()).Add("0"); com_CategoryAxis = var_CategoryAxis;
com_CategoryAxis.Format("`Wno<off-4>` + week(date(value left 10))");
com_CategoryAxis.Split(true);
com_CategoryAxis.Mark("#F8F8F8(index in (1,3))");
exgraph1.Refresh();
exgraph1.EndUpdate();
}
|
331
|
Highlight the categories using an expression

public void init()
{
COM com_CategoryAxis,com_Serie;
anytype var_CategoryAxis,var_Serie;
;
super();
exgraph1.BeginUpdate();
exgraph1.Import("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/aapl.txt");
exgraph1.SerieType("line");
exgraph1.ValueSize(6);
var_Serie = COM::createFromObject(exgraph1.Series()).Add("open"); com_Serie = var_Serie;
com_Serie.Data("AAPL (open)");
var_CategoryAxis = COM::createFromObject(exgraph1.CategoryAxes()).Add("0"); com_CategoryAxis = var_CategoryAxis;
com_CategoryAxis.Format("value left 7");
com_CategoryAxis.Split(true);
com_CategoryAxis.Mark("#F8F8F8(label = `2014-02`)");
exgraph1.Refresh();
exgraph1.EndUpdate();
}
|
330
|
Highlight the categories based on the index

public void init()
{
COM com_CategoryAxis,com_Serie;
anytype var_CategoryAxis,var_Serie;
;
super();
exgraph1.BeginUpdate();
exgraph1.Import("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/aapl.txt");
exgraph1.SerieType("line");
var_Serie = COM::createFromObject(exgraph1.Series()).Add("open"); com_Serie = var_Serie;
com_Serie.Data("AAPL (open)");
var_CategoryAxis = COM::createFromObject(exgraph1.CategoryAxes()).Add("0"); com_CategoryAxis = var_CategoryAxis;
com_CategoryAxis.Format("`Wno<off-4>` + week(date(value left 10))");
com_CategoryAxis.Split(true);
com_CategoryAxis.Mark("#F8F8F8(2)");
exgraph1.Refresh();
exgraph1.EndUpdate();
}
|
329
|
IdemmM {string}, specifies the name of another value-axis to synchronize min, max, and major-unit values from when scrolling. If omitted or the value-axis with the given name is not found, these values are synchronized with the default value-axis

public void init()
{
COM com_GridLinesOptions,com_Serie,com_ValueAxes,com_ValueAxis,com_ValueAxis1;
anytype var_GridLinesOptions,var_Serie,var_ValueAxes,var_ValueAxis,var_ValueAxis1;
;
super();
exgraph1.BeginUpdate();
exgraph1.Import("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/aapl.txt");
var_Serie = COM::createFromObject(exgraph1.Series()).Add("open"); com_Serie = var_Serie;
com_Serie.Data("AAPL (open)");
com_Serie.Type("line");
var_ValueAxes = exgraph1.ValueAxes(); com_ValueAxes = var_ValueAxes;
com_ValueAxes.Add("1st");
var_ValueAxis = com_ValueAxes.Add("2nd"); com_ValueAxis = var_ValueAxis;
com_ValueAxis.Align(2/*exAlignRight*/);
com_ValueAxis.IdemmM("1st");
var_ValueAxis1 = com_ValueAxes.Add("3rd"); com_ValueAxis1 = var_ValueAxis1;
com_ValueAxis1.Format("120 + value * 2.5");
var_GridLinesOptions = COM::createFromObject(com_ValueAxis1.MajorGridLines()); com_GridLinesOptions = var_GridLinesOptions;
com_GridLinesOptions.Color("transparent");
exgraph1.EndUpdate();
}
|
328
|
Adds multiple value-axes

public void init()
{
COM com_Serie,com_ValueAxes,com_ValueAxis;
anytype var_Serie,var_ValueAxes,var_ValueAxis;
;
super();
exgraph1.BeginUpdate();
exgraph1.Import("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/aapl.txt");
var_Serie = COM::createFromObject(exgraph1.Series()).Add("open"); com_Serie = var_Serie;
com_Serie.Data("AAPL (close)");
com_Serie.Type("line");
com_Serie.Style(1/*exSpline*/);
var_ValueAxes = exgraph1.ValueAxes(); com_ValueAxes = var_ValueAxes;
com_ValueAxes.Add("1st");
var_ValueAxis = COM::createFromObject(com_ValueAxes.Add("2nd")); com_ValueAxis = var_ValueAxis;
com_ValueAxis.Align(2/*exAlignRight*/);
exgraph1.EndUpdate();
}
|
327
|
Split the chart in weeks

public void init()
{
COM com_CategoryAxis,com_FormatGridLinesOptions,com_Serie;
anytype var_CategoryAxis,var_FormatGridLinesOptions,var_Serie;
;
super();
exgraph1.BeginUpdate();
exgraph1.ValueSize(18);
exgraph1.Import("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/aapl.txt");
var_Serie = COM::createFromObject(exgraph1.Series()).Add("open"); com_Serie = var_Serie;
com_Serie.Data("AAPL (open)");
com_Serie.Type("line");
com_Serie.Style(1/*exSpline*/);
var_CategoryAxis = COM::createFromObject(exgraph1.CategoryAxes()).Add("0"); com_CategoryAxis = var_CategoryAxis;
com_CategoryAxis.Format("value mid 9 left 2");
var_FormatGridLinesOptions = com_CategoryAxis.ChartGridLines(); com_FormatGridLinesOptions = var_FormatGridLinesOptions;
com_FormatGridLinesOptions.Format("`<fgcolor gray>Wno <off 4>` + week(date(value left 10))");
com_FormatGridLinesOptions.Color("gray");
com_FormatGridLinesOptions.Align(0/*exTextAlignLeft*/);
exgraph1.EndUpdate();
}
|
326
|
Resets the series, category axes and value axes without affecting the control's data
// Click event - Occurs when the user presses and then releases the left mouse button over the control.
void onEvent_Click()
{
;
exgraph1.Reset();
}
public void init()
{
COM com_CategoryAxis,com_CategoryAxis1,com_Serie;
anytype var_CategoryAxis,var_CategoryAxis1,var_Serie;
;
super();
exgraph1.BeginUpdate();
exgraph1.ValueSize(18);
exgraph1.Import("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/aapl.txt");
exgraph1.SerieType("line");
var_Serie = COM::createFromObject(exgraph1.Series()).Add(); com_Serie = var_Serie;
com_Serie.Name("aapl");
com_Serie.Data("AAPL (open),AAPL (high),AAPL (low),AAPL (close)");
var_CategoryAxis = COM::createFromObject(exgraph1.CategoryAxes()).Add("0"); com_CategoryAxis = var_CategoryAxis;
com_CategoryAxis.Format("value mid 9 left 2");
var_CategoryAxis1 = COM::createFromObject(exgraph1.CategoryAxes()).Add("0"); com_CategoryAxis1 = var_CategoryAxis1;
com_CategoryAxis1.Format("value left 7");
com_CategoryAxis1.Split(true);
exgraph1.EndUpdate();
}
|
325
|
Define the representation method for the data in all series where the type property is not specified, determining how these series are visually displayed

public void init()
{
COM com_Series;
anytype var_Series;
str var_s,var_s1;
;
super();
exgraph1.BeginUpdate();
exgraph1.Pad(COMVariant::createFromInt(18));
exgraph1.AutoFit(true);
exgraph1.SerieType("rangeArea");
var_Series = exgraph1.Series(); com_Series = var_Series;
var_s = "Chinese(14.1),Spanish(6.7),English(4.9),Hindi(4.2),Arabic(4.1),Bengali(3.3),Portuguese(2.9),Russian(2.8),Japanese(1.7),Lahnda(1.";
var_s = var_s + "6)";
com_Series.Add(COMVariant::createFromStr(var_s),"Worldwide");
var_s1 = "Chinese(13.2),Spanish(6.6),English(4.8),Hindi(4.1),Arabic(4.0),Bengali(3.2),Portuguese(2.8),Russian(2.7),Japanese(1.6),Lahnda(1.";
var_s1 = var_s1 + "5)";
com_Series.Add(COMVariant::createFromStr(var_s1),"Native");
exgraph1.Legend().Visible(true);
exgraph1.EndUpdate();
}
|
324
|
How can I prevent the labels from rotating around the chart when using the radarColumn type

public void init()
{
COM com_Series;
anytype var_Series;
str var_s,var_s1;
;
super();
exgraph1.BeginUpdate();
exgraph1.Pad(COMVariant::createFromInt(18));
exgraph1.AutoFit(true);
exgraph1.SerieType("radarCol");
exgraph1.Misc(16/*exRadialRotateLabels*/,COMVariant::createFromBoolean(false));
var_Series = exgraph1.Series(); com_Series = var_Series;
var_s = "Chinese(14.1),Spanish(6.7),English(4.9),Hindi(4.2),Arabic(4.1),Bengali(3.3),Portuguese(2.9),Russian(2.8),Japanese(1.7),Lahnda(1.";
var_s = var_s + "6)";
com_Series.Add(COMVariant::createFromStr(var_s),"Worldwide");
var_s1 = "Chinese(13.2),Spanish(6.6),English(4.8),Hindi(4.1),Arabic(4.0),Bengali(3.2),Portuguese(2.8),Russian(2.7),Japanese(1.6),Lahnda(1.";
var_s1 = var_s1 + "5)";
com_Series.Add(COMVariant::createFromStr(var_s1),"Native");
exgraph1.Legend().Visible(true);
exgraph1.EndUpdate();
}
|
323
|
Disable stacking for all series at once

public void init()
{
COM com_Series;
anytype var_Series;
str var_s,var_s1,var_s2,var_s3;
;
super();
exgraph1.BeginUpdate();
exgraph1.Pad(COMVariant::createFromInt(18));
exgraph1.AutoFit(true);
exgraph1.AllowStack(false);
var_Series = exgraph1.Series(); com_Series = var_Series;
var_s = "Chinese(14.1),Spanish(6.7),English(4.9),Hindi(4.2),Arabic(4.1),Bengali(3.3),Portuguese(2.9),Russian(2.8),Japanese(1.7),Lahnda(1.";
var_s = var_s + "6)";
var_s1 = "Chinese(14.1),Spanish(6.7),English(4.9),Hindi(4.2),Arabic(4.1),Bengali(3.3),Portuguese(2.9),Russian(2.8),Japanese(1.7),Lahnda(1.";
var_s1 = var_s1 + "6)";
com_Series.Add(COMVariant::createFromStr(var_s),"Worldwide").Stack("group");
var_s2 = "Chinese(13.2),Spanish(6.6),English(4.8),Hindi(4.1),Arabic(4.0),Bengali(3.2),Portuguese(2.8),Russian(2.7),Japanese(1.6),Lahnda(1.";
var_s2 = var_s2 + "5)";
var_s3 = "Chinese(13.2),Spanish(6.6),English(4.8),Hindi(4.1),Arabic(4.0),Bengali(3.2),Portuguese(2.8),Russian(2.7),Japanese(1.6),Lahnda(1.";
var_s3 = var_s3 + "5)";
com_Series.Add(COMVariant::createFromStr(var_s2),"Native").Stack("group");
exgraph1.Legend().Visible(true);
exgraph1.EndUpdate();
}
|
322
|
How can I stack more than three data series across multiple columns

public void init()
{
COM com_Series;
anytype var_Series;
str var_s,var_s1,var_s10,var_s11,var_s12,var_s13,var_s2,var_s3,var_s4,var_s5,var_s6,var_s7,var_s8,var_s9;
;
super();
exgraph1.BeginUpdate();
exgraph1.Pad(COMVariant::createFromInt(18));
exgraph1.AutoFit(true);
var_Series = exgraph1.Series(); com_Series = var_Series;
var_s = "Chinese(9.165),Spanish(4.355),English(3.185),Hindi(2.73),Arabic(2.665),Bengali(2.145),Portuguese(1.885),Russian(1.82),Japanese(1";
var_s = var_s + ".105),Lahnda(1.04)";
var_s1 = "Chinese(9.165),Spanish(4.355),English(3.185),Hindi(2.73),Arabic(2.665),Bengali(2.145),Portuguese(1.885),Russian(1.82),Japanese(1";
var_s1 = var_s1 + ".105),Lahnda(1.04)";
com_Series.Add(COMVariant::createFromStr(var_s),"Male").Stack("G1");
var_s2 = "Chinese(4.935),Spanish(2.345),English(1.715),Hindi(1.47),Arabic(1.435),Bengali(1.155),Portuguese(1.015),Russian(0.98),Japanese(0";
var_s2 = var_s2 + ".595),Lahnda(0.56)";
var_s3 = "Chinese(4.935),Spanish(2.345),English(1.715),Hindi(1.47),Arabic(1.435),Bengali(1.155),Portuguese(1.015),Russian(0.98),Japanese(0";
var_s3 = var_s3 + ".595),Lahnda(0.56)";
com_Series.Add(COMVariant::createFromStr(var_s2),"Female").Stack("G1");
var_s4 = "Chinese(3.5),Spanish(2.0),English(1.8),Hindi(0.5),Arabic(0.4),Bengali(0.3),Portuguese(0.7),Russian(1.2),Japanese(0.4),Lahnda(0.2";
var_s4 = var_s4 + ")";
var_s5 = "Chinese(3.5),Spanish(2.0),English(1.8),Hindi(0.5),Arabic(0.4),Bengali(0.3),Portuguese(0.7),Russian(1.2),Japanese(0.4),Lahnda(0.2";
var_s5 = var_s5 + ")";
com_Series.Add(COMVariant::createFromStr(var_s4),"Europe").Stack("G2");
var_s6 = "Chinese(8.0),Spanish(0.5),English(1.0),Hindi(3.0),Arabic(2.5),Bengali(2.0),Portuguese(0.2),Russian(1.0),Japanese(1.0),Lahnda(0.5";
var_s6 = var_s6 + ")";
var_s7 = "Chinese(8.0),Spanish(0.5),English(1.0),Hindi(3.0),Arabic(2.5),Bengali(2.0),Portuguese(0.2),Russian(1.0),Japanese(1.0),Lahnda(0.5";
var_s7 = var_s7 + ")";
com_Series.Add(COMVariant::createFromStr(var_s6),"Asia").Stack("G2");
var_s8 = "Chinese(1.0),Spanish(3.5),English(1.5),Hindi(0.2),Arabic(0.5),Bengali(0.1),Portuguese(1.5),Russian(0.1),Japanese(0.1),Lahnda(0.1";
var_s8 = var_s8 + ")";
var_s9 = "Chinese(1.0),Spanish(3.5),English(1.5),Hindi(0.2),Arabic(0.5),Bengali(0.1),Portuguese(1.5),Russian(0.1),Japanese(0.1),Lahnda(0.1";
var_s9 = var_s9 + ")";
com_Series.Add(COMVariant::createFromStr(var_s8),"America").Stack("G2");
var_s10 = "Chinese(0.1),Spanish(0.1),English(0.3),Hindi(0.1),Arabic(0.1),Bengali(0.1),Portuguese(0.1),Russian(0.1),Japanese(0.1),Lahnda(0.1";
var_s10 = var_s10 + ")";
var_s11 = "Chinese(0.1),Spanish(0.1),English(0.3),Hindi(0.1),Arabic(0.1),Bengali(0.1),Portuguese(0.1),Russian(0.1),Japanese(0.1),Lahnda(0.1";
var_s11 = var_s11 + ")";
com_Series.Add(COMVariant::createFromStr(var_s10),"Australia").Stack("G2");
var_s12 = "Chinese(1.5),Spanish(0.6),English(0.3),Hindi(0.4),Arabic(0.6),Bengali(0.8),Portuguese(0.4),Russian(0.4),Japanese(0.1),Lahnda(0.5";
var_s12 = var_s12 + ")";
var_s13 = "Chinese(1.5),Spanish(0.6),English(0.3),Hindi(0.4),Arabic(0.6),Bengali(0.8),Portuguese(0.4),Russian(0.4),Japanese(0.1),Lahnda(0.5";
var_s13 = var_s13 + ")";
com_Series.Add(COMVariant::createFromStr(var_s12),"Others").Stack("G2");
exgraph1.Legend().Visible(true);
exgraph1.EndUpdate();
}
|
321
|
How can I stack data more than three series

public void init()
{
COM com_Series;
anytype var_Series;
str var_s,var_s1,var_s2,var_s3,var_s4,var_s5;
;
super();
exgraph1.BeginUpdate();
exgraph1.Pad(COMVariant::createFromInt(18));
exgraph1.AutoFit(true);
var_Series = exgraph1.Series(); com_Series = var_Series;
var_s = "Chinese(14.1),Spanish(6.7),English(4.9),Hindi(4.2),Arabic(4.1),Bengali(3.3),Portuguese(2.9),Russian(2.8),Japanese(1.7),Lahnda(1.";
var_s = var_s + "6)";
var_s1 = "Chinese(14.1),Spanish(6.7),English(4.9),Hindi(4.2),Arabic(4.1),Bengali(3.3),Portuguese(2.9),Russian(2.8),Japanese(1.7),Lahnda(1.";
var_s1 = var_s1 + "6)";
com_Series.Add(COMVariant::createFromStr(var_s),"Worldwide").Stack("group");
var_s2 = "Chinese(13.2),Spanish(6.6),English(4.8),Hindi(4.1),Arabic(4.0),Bengali(3.2),Portuguese(2.8),Russian(2.7),Japanese(1.6),Lahnda(1.";
var_s2 = var_s2 + "5)";
var_s3 = "Chinese(13.2),Spanish(6.6),English(4.8),Hindi(4.1),Arabic(4.0),Bengali(3.2),Portuguese(2.8),Russian(2.7),Japanese(1.6),Lahnda(1.";
var_s3 = var_s3 + "5)";
com_Series.Add(COMVariant::createFromStr(var_s2),"Native").Stack("group");
var_s4 = "Chinese(1.5),Spanish(10.2),English(2.1),Hindi(0.5),Arabic(0.8),Bengali(0.3),Portuguese(3.5),Russian(0.4),Japanese(0.2),Lahnda(0.";
var_s4 = var_s4 + "1)";
var_s5 = "Chinese(1.5),Spanish(10.2),English(2.1),Hindi(0.5),Arabic(0.8),Bengali(0.3),Portuguese(3.5),Russian(0.4),Japanese(0.2),Lahnda(0.";
var_s5 = var_s5 + "1)";
com_Series.Add(COMVariant::createFromStr(var_s4),"Regional").Stack("group");
exgraph1.Legend().Visible(true);
exgraph1.EndUpdate();
}
|
320
|
I use the legend, but clicking a series mostly rearranges them instead of hiding it
public void init()
{
;
super();
exgraph1.BeginUpdate();
exgraph1.AutoFit(true);
exgraph1.Misc(17/*exNewLayoutOnVisibleChange*/,COMVariant::createFromBoolean(false));
exgraph1.Series().Add("50,150,150,300","A1");
exgraph1.Series().Add("180,40,60,160","A2");
exgraph1.Legend().Visible(true);
exgraph1.EndUpdate();
}
|
319
|
Adjusts the column/bar size so that the entire chart fits within the client rectangle
public void init()
{
;
super();
exgraph1.BeginUpdate();
exgraph1.CategoryAxis().Categories("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania");
exgraph1.Series().Add("4600,1300,747,579,0,422,42");
exgraph1.ValueAutoFit();
exgraph1.EndUpdate();
}
|
318
|
The categories overlap, making the text unreadable

public void init()
{
COM com_CategoryAxis;
anytype var_CategoryAxis;
;
super();
exgraph1.BeginUpdate();
exgraph1.ValueSize(32);
var_CategoryAxis = exgraph1.CategoryAxis(); com_CategoryAxis = var_CategoryAxis;
com_CategoryAxis.Categories("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania");
com_CategoryAxis.Format("`<bgcolor white>` + value");
exgraph1.Series().Add("4600,1300,747,579,0,422,42");
exgraph1.EndUpdate();
}
|
317
|
Represents a single serie with single color (prevent multiple colors for single-serie)

public void init()
{
;
super();
exgraph1.BeginUpdate();
exgraph1.AutoFit(true);
exgraph1.MultiColorSerie(false);
exgraph1.CategoryAxis().MajorGridLines().Color("lightgray");
exgraph1.Series().Add("Electronics(350),Clothing(200),Books(150)",COMVariant::createFromInt(2001));
exgraph1.Legend().Visible(true);
exgraph1.EndUpdate();
}
|
316
|
How can I replace or add an icon at runtime

public void init()
{
str var_s,var_s1;
;
super();
exgraph1.BeginUpdate();
var_s = "gAAAABgYACEHgUJFEEAAWhUJCEJEEJggEhMCYEXjUbjkJQECj8gj8hAEjkshYEpk8kf8ClsulsvAExmcvf83js5nU7nkCeEcn8boMaocXosCB9Hn09pkzcEuoL/fE+Ok";
var_s = var_s + "YB0gB9YhIHrddgVcr9aktZADAD8+P8CgIA==";
exgraph1.ReplaceIcon(COMVariant::createFromStr(var_s));
exgraph1.ReplaceIcon("C:\\images\\favicon.ico",COMVariant::createFromInt(0));
exgraph1.AutoFit(true);
var_s1 = "<img>1</img>Asia(4600),<img>2</img>Africa(1300),<img>3</img>Europe(747),<img>4</img>North America(579),<img>5</img>South America";
var_s1 = var_s1 + "(433),<img>6</img>Australia/Oceania(42)";
exgraph1.Series().Add(COMVariant::createFromStr(var_s1));
exgraph1.SeriesColors("blue");
exgraph1.EndUpdate();
}
|
315
|
No grid lines are shown even I set the Color and Format properties of ChartGridLines/OverviewGridLines
public void init()
{
COM com_CategoryAxis,com_FormatGridLinesOptions;
anytype var_CategoryAxis,var_FormatGridLinesOptions;
;
super();
exgraph1.Series().Add("100,200,200,400","S1");
exgraph1.Series().Add("210,20,20,120","S2");
var_CategoryAxis = COM::createFromObject(exgraph1.CategoryAxes()).Add("A,B,C,D","1st"); com_CategoryAxis = var_CategoryAxis;
var_FormatGridLinesOptions = com_CategoryAxis.ChartGridLines(); com_FormatGridLinesOptions = var_FormatGridLinesOptions;
com_FormatGridLinesOptions.Color("red");
com_FormatGridLinesOptions.Format("value");
exgraph1.CategoryAxes().Add("E,F","2nd");
exgraph1.Refresh();
}
|
314
|
Occasionally, the margins of the axes may not align perfectly with the view

public void init()
{
COM com_Serie;
anytype var_Serie;
str var_s,var_s1;
;
super();
exgraph1.BeginUpdate();
exgraph1.ValueSize(18);
exgraph1.Pad(COMVariant::createFromInt(24));
exgraph1.ValueAxis().Format("value format `0`");
var_s = "Hulunbuir{China}(263068),Abu Dhabi{United Arab Emirates}(97200),Jiuquan{China}(167996),Altamira{Brazil}(159891),Brasília{Brazil}";
var_s = var_s + "(5784),Mumbai{India}(603.4),Delhi{India}(1484),Chongqing{China}(82400),Hulunbuir{China}(263068),Sao Paulo{Brazil}(1522),Linfen{C";
var_s = var_s + "hina}(20527),Santiago{Chile}(641),Mexico City{Mexico}(1485),Belo Horizonte{Brazil}(313),Hangzhou{China}(16817),Nairobi{Kenya}(69";
var_s = var_s + "6),Berlin{Germany}(891.68),Montreal{Canada}(431.5),Cordoba{Argentina}(576),Manaus{Brazil}(11401),Astana{Kazakhstan}(810),Goiânia";
var_s = var_s + "{Brazil}(741),Cali{Colombia}(564),Sao Paulo{Brazil}(1522),Goiania{Brazil}(781)";
var_s1 = "Hulunbuir{China}(263068),Abu Dhabi{United Arab Emirates}(97200),Jiuquan{China}(167996),Altamira{Brazil}(159891),Brasília{Brazil}";
var_s1 = var_s1 + "(5784),Mumbai{India}(603.4),Delhi{India}(1484),Chongqing{China}(82400),Hulunbuir{China}(263068),Sao Paulo{Brazil}(1522),Linfen{C";
var_s1 = var_s1 + "hina}(20527),Santiago{Chile}(641),Mexico City{Mexico}(1485),Belo Horizonte{Brazil}(313),Hangzhou{China}(16817),Nairobi{Kenya}(69";
var_s1 = var_s1 + "6),Berlin{Germany}(891.68),Montreal{Canada}(431.5),Cordoba{Argentina}(576),Manaus{Brazil}(11401),Astana{Kazakhstan}(810),Goiânia";
var_s1 = var_s1 + "{Brazil}(741),Cali{Colombia}(564),Sao Paulo{Brazil}(1522),Goiania{Brazil}(781)";
var_Serie = exgraph1.Series().Add(COMVariant::createFromStr(var_s)); com_Serie = var_Serie;
com_Serie.Type("Col");
com_Serie.Vertical(true);
exgraph1.Sort("0:D");
exgraph1.EndUpdate();
}
|
313
|
"candlestick" explained, an [open,high,low,close] chart

public void init()
{
COM com_Serie;
anytype var_Serie;
;
super();
exgraph1.BeginUpdate();
exgraph1.ValueSize(32);
exgraph1.ValuePoint("0,,,,lightgray,1");
exgraph1.ValueAxis().MajorGridLines().Step(4);
var_Serie = COM::createFromObject(exgraph1.Series()).Add("One(79.38 79.57 78.86 79.01)"); com_Serie = var_Serie;
com_Serie.Type("candlestick");
com_Serie.ShowValue(7/*exValue | exLine | exPoint*/);
com_Serie.ValueFormat("(inner array (`<b>open`,`<fgcolor gray>high`,`<fgcolor gray>low`,`<b>close`)) + ` ` + value");
exgraph1.EndUpdate();
}
|
312
|
"candlestick", a candlestick chart (also called Japanese candlestick chart or K-line) is a style of financial chart used to describe price movements of a security, derivative, or currency. While similar in appearance to a bar chart, each candleStick represents four important pieces of information for that day: open and close in the thick body, and high and low in the "candle wick". Being densely packed with information, it tends to represent trading patterns over short periods of time, often a few days or a few trading sessions. (data requires array of array of four-numbers, such as [[open, high, low and close]], supports vertical field, scrollable)

public void init()
{
COM com_CategoryAxis,com_Serie;
anytype var_CategoryAxis,var_Serie;
;
super();
exgraph1.BeginUpdate();
exgraph1.ValueSize(18);
var_CategoryAxis = exgraph1.CategoryAxis(); com_CategoryAxis = var_CategoryAxis;
com_CategoryAxis.Categories("Date");
com_CategoryAxis.Format("value mid 9 left 2");
exgraph1.Data("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/msft.csv");
var_Serie = COM::createFromObject(exgraph1.Series()).Add("Open,High,Low,Close","msft"); com_Serie = var_Serie;
com_Serie.Type("candlestick");
exgraph1.EndUpdate();
}
|
311
|
"ohlc" explained, an [open,high,low,close] chart

public void init()
{
COM com_Serie;
anytype var_Serie;
;
super();
exgraph1.BeginUpdate();
exgraph1.ValueSize(32);
exgraph1.ValuePoint("0,,,,lightgray,1");
exgraph1.ValueAxis().MajorGridLines().Step(4);
var_Serie = COM::createFromObject(exgraph1.Series()).Add("One(79.38 79.57 78.86 79.01)"); com_Serie = var_Serie;
com_Serie.Type("ohlc");
com_Serie.ShowValue(7/*exValue | exLine | exPoint*/);
com_Serie.ValueFormat("(inner array (`<b>open`,`<fgcolor gray>high`,`<fgcolor gray>low`,`<b>close`)) + ` ` + value");
exgraph1.EndUpdate();
}
|
310
|
"ohlc", an open-high-low-close chart (also OHLC) is a type of chart typically used to illustrate movements in the price of a financial instrument over time. Each vertical line on the chart shows the price range (the highest and lowest prices) over one unit of time, e.g., one day or one hour. Tick marks project from each side of the line indicating the opening price (e.g., for a daily bar chart this would be the starting price for that day) on the left, and the closing price for that time period on the right. The bars may be shown in different hues depending on whether prices rose or fell in that period. (data requires array of array of four-numbers, such as [[open, high, low and close]], supports vertical field, scrollable)

public void init()
{
COM com_CategoryAxis,com_Serie;
anytype var_CategoryAxis,var_Serie;
;
super();
exgraph1.BeginUpdate();
exgraph1.ValueSize(18);
var_CategoryAxis = exgraph1.CategoryAxis(); com_CategoryAxis = var_CategoryAxis;
com_CategoryAxis.Categories("Date");
com_CategoryAxis.Format("value mid 9 left 2");
exgraph1.Data("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/msft.csv");
var_Serie = COM::createFromObject(exgraph1.Series()).Add("Open,High,Low,Close","msft"); com_Serie = var_Serie;
com_Serie.Type("ohlc");
exgraph1.EndUpdate();
}
|
309
|
"bubble", a bubble chart or bubble plot is a type of chart that displays three dimensions of data (a bubble chart is an extension of the scatter plot used to look at relationships between three numeric variables.). Each entity with its triplet (v1, v2, v3) of associated data is plotted as a disk that expresses two of the vi values through the disk's xy location and the third through its size. Bubble charts can facilitate the understanding of social, economical, medical, and other scientific relationships. (data requires array of array of three-numbers, such as [[x, y, size]], supports vertical field, non-scrollable)

public void init()
{
COM com_Serie,com_Serie1;
anytype var_Serie,var_Serie1;
;
super();
exgraph1.BeginUpdate();
exgraph1.Pad(COMVariant::createFromInt(18));
var_Serie = COM::createFromObject(exgraph1.Series()).Add("1 25 1,2 49 2,3 70 3,4 86 4,5 96 5,6 100 4,7 96 3,8 86 2,9 70 1,10 49 1,11 25 1","Bell<b>1"); com_Serie = var_Serie;
com_Serie.Type("bubble");
com_Serie.Misc(1/*exScatterPlotSize*/,COMVariant::createFromInt(32));
var_Serie1 = COM::createFromObject(exgraph1.Series()).Add("1 -25 1,2 -49 2,3 -70 3,4 -86 4,5 -96 5,6 -100 6,7 -96 5,8 -86 4,9 -70 3,10 -49 2,11 -25 1","Bell<b>2"); com_Serie1 = var_Serie1;
com_Serie1.Type("bubble");
com_Serie1.Misc(1/*exScatterPlotSize*/,COMVariant::createFromInt(32));
exgraph1.EndUpdate();
}
|
308
|
"scatter", a scatter plot (also called a scatterplot, scatter graph, scatter chart, scattergram, or scatter diagram) is a type of plot or mathematical diagram using Cartesian coordinates to display values for typically two variables for a set of data. (data requires array of array of two-numbers, such as [[x, y]], supports vertical field, non-scrollable)

public void init()
{
COM com_Serie;
anytype var_Serie;
;
super();
exgraph1.BeginUpdate();
exgraph1.Pad(COMVariant::createFromInt(18));
var_Serie = COM::createFromObject(exgraph1.Series()).Add("1 25,2 49,3 70,4 86,5 96,6 100,7 96,8 86,9 70,10 49,11 25","Bell<b>1"); com_Serie = var_Serie;
com_Serie.Type("scatter");
var_Serie = COM::createFromObject(exgraph1.Series()).Add("1 -25,2 -49,3 -70,4 -86,5 -96,6 -100,7 -96,8 -86,9 -70,10 -49,11 -25","Bell<b>2"); com_Serie = var_Serie;
com_Serie.Type("scatter");
exgraph1.EndUpdate();
}
|
307
|
"scatterline", curved

public void init()
{
COM com_Serie;
anytype var_Serie;
;
super();
exgraph1.BeginUpdate();
exgraph1.Pad(COMVariant::createFromInt(18));
var_Serie = COM::createFromObject(exgraph1.Series()).Add("1 25,2 49,3 70,4 86,5 96,6 100,7 96,8 86,9 70,10 49,11 25","Bell"); com_Serie = var_Serie;
com_Serie.Type("scatterline");
com_Serie.Style(1/*exSpline*/);
exgraph1.EndUpdate();
}
|
306
|
"scatterline", a scatter line chart is similar with "scatter" type, excepts that lines are shown between scatter plots. (data requires array of array of two-numbers, such as [[x, y]], supports vertical field, non-scrollable)

public void init()
{
COM com_Serie;
anytype var_Serie;
;
super();
exgraph1.BeginUpdate();
exgraph1.Pad(COMVariant::createFromInt(18));
var_Serie = COM::createFromObject(exgraph1.Series()).Add("1 25,2 49,3 70,4 86,5 96,6 100,7 96,8 86,9 70,10 49,11 25","Bell<b>1"); com_Serie = var_Serie;
com_Serie.Type("scatterline");
var_Serie = COM::createFromObject(exgraph1.Series()).Add("1 -25,2 -49,3 -70,4 -86,5 -96,6 -100,7 -96,8 -86,9 -70,10 -49,11 -25","Bell<b>2"); com_Serie = var_Serie;
com_Serie.Type("scatterline");
exgraph1.EndUpdate();
}
|
305
|
"scatterarea", curved

public void init()
{
COM com_Serie;
anytype var_Serie;
;
super();
exgraph1.BeginUpdate();
exgraph1.Pad(COMVariant::createFromInt(18));
var_Serie = COM::createFromObject(exgraph1.Series()).Add("1 25,2 49,3 70,4 86,5 96,6 100,7 96,8 86,9 70,10 49,11 25","Bell"); com_Serie = var_Serie;
com_Serie.Type("scatterarea");
com_Serie.Style(1/*exSpline*/);
exgraph1.EndUpdate();
}
|
304
|
"scatterarea", a scatter area chart is similar with "scatterLine" type, excepts that scatter plots zone is filled. (data requires array of array of two-numbers, such as [[x, y]], supports vertical field, non-scrollable)

public void init()
{
COM com_Serie;
anytype var_Serie;
;
super();
exgraph1.BeginUpdate();
exgraph1.Pad(COMVariant::createFromInt(18));
var_Serie = COM::createFromObject(exgraph1.Series()).Add("1 25,2 49,3 70,4 86,5 96,6 100,7 96,8 86,9 70,10 49,11 25","Bell<b>1"); com_Serie = var_Serie;
com_Serie.Type("scatterarea");
var_Serie = COM::createFromObject(exgraph1.Series()).Add("1 -25,2 -49,3 -70,4 -86,5 -96,6 -100,7 -96,8 -86,9 -70,10 -49,11 -25","Bell<b>2"); com_Serie = var_Serie;
com_Serie.Type("scatterarea");
exgraph1.EndUpdate();
}
|
303
|
"polarscatter", shows the serie as non-connected data points (data requires array of array of two-numbers, such as [[angle, value]], non-scrollable)

public void init()
{
COM com_CategoryAxis,com_GridLinesOptions,com_Serie;
anytype var_CategoryAxis,var_GridLinesOptions,var_Serie;
str var_s,var_s1;
;
super();
exgraph1.BeginUpdate();
exgraph1.Misc(16/*exRadialRotateLabels*/,COMVariant::createFromBoolean(false));
var_CategoryAxis = exgraph1.CategoryAxis(); com_CategoryAxis = var_CategoryAxis;
com_CategoryAxis.Categories("45,90,135,180,225,270,315,360");
var_GridLinesOptions = COM::createFromObject(com_CategoryAxis.MajorGridLines()); com_GridLinesOptions = var_GridLinesOptions;
com_GridLinesOptions.Color("lightgray");
var_s = "0 0,15 2,30 4,45 6,60 8,75 10,90 12,105 14,120 16,135 18,150 20,165 22,180 24,195 26,210 28,225 30,240 32,255 34,270 36,285 38,3";
var_s = var_s + "00 40,315 42,330 44,345 46,360 48,15 50,30 52,45 54,60 56,75 58,90 60";
var_s1 = "0 0,15 2,30 4,45 6,60 8,75 10,90 12,105 14,120 16,135 18,150 20,165 22,180 24,195 26,210 28,225 30,240 32,255 34,270 36,285 38,3";
var_s1 = var_s1 + "00 40,315 42,330 44,345 46,360 48,15 50,30 52,45 54,60 56,75 58,90 60";
var_Serie = exgraph1.Series().Add(COMVariant::createFromStr(var_s),"Spiral"); com_Serie = var_Serie;
com_Serie.Type("polarscatter");
com_Serie.Color("red");
exgraph1.EndUpdate();
}
|
302
|
"polarline", represents data points connected with straight line segments (data requires array of array of two-numbers, such as [[angle, value]], non-scrollable)

public void init()
{
COM com_CategoryAxis,com_GridLinesOptions,com_Serie;
anytype var_CategoryAxis,var_GridLinesOptions,var_Serie;
str var_s,var_s1;
;
super();
exgraph1.BeginUpdate();
exgraph1.Misc(16/*exRadialRotateLabels*/,COMVariant::createFromBoolean(false));
var_CategoryAxis = exgraph1.CategoryAxis(); com_CategoryAxis = var_CategoryAxis;
com_CategoryAxis.Categories("45,90,135,180,225,270,315,360");
var_GridLinesOptions = COM::createFromObject(com_CategoryAxis.MajorGridLines()); com_GridLinesOptions = var_GridLinesOptions;
com_GridLinesOptions.Color("lightgray");
var_s = "0 0,15 2,30 4,45 6,60 8,75 10,90 12,105 14,120 16,135 18,150 20,165 22,180 24,195 26,210 28,225 30,240 32,255 34,270 36,285 38,3";
var_s = var_s + "00 40,315 42,330 44,345 46,360 48,15 50,30 52,45 54,60 56,75 58,90 60";
var_s1 = "0 0,15 2,30 4,45 6,60 8,75 10,90 12,105 14,120 16,135 18,150 20,165 22,180 24,195 26,210 28,225 30,240 32,255 34,270 36,285 38,3";
var_s1 = var_s1 + "00 40,315 42,330 44,345 46,360 48,15 50,30 52,45 54,60 56,75 58,90 60";
var_Serie = exgraph1.Series().Add(COMVariant::createFromStr(var_s),"Spiral"); com_Serie = var_Serie;
com_Serie.Type("polarLine");
com_Serie.Color("red");
exgraph1.EndUpdate();
}
|
301
|
"polararea", represents data points connected with straight line segments that enclose a filled area together with the chart pole (data requires array of array of two-numbers, such as [[angle, value]], non-scrollable)

public void init()
{
COM com_CategoryAxis,com_GridLinesOptions,com_Serie;
anytype var_CategoryAxis,var_GridLinesOptions,var_Serie;
str var_s,var_s1;
;
super();
exgraph1.BeginUpdate();
exgraph1.Misc(16/*exRadialRotateLabels*/,COMVariant::createFromBoolean(false));
var_CategoryAxis = exgraph1.CategoryAxis(); com_CategoryAxis = var_CategoryAxis;
com_CategoryAxis.Categories("45,90,135,180,225,270,315,360");
var_GridLinesOptions = COM::createFromObject(com_CategoryAxis.MajorGridLines()); com_GridLinesOptions = var_GridLinesOptions;
com_GridLinesOptions.Color("lightgray");
var_s = "0 0,15 2,30 4,45 6,60 8,75 10,90 12,105 14,120 16,135 18,150 20,165 22,180 24,195 26,210 28,225 30,240 32,255 34,270 36,285 38,3";
var_s = var_s + "00 40,315 42,330 44,345 46,360 48,15 50,30 52,45 54,60 56,75 58,90 60";
var_s1 = "0 0,15 2,30 4,45 6,60 8,75 10,90 12,105 14,120 16,135 18,150 20,165 22,180 24,195 26,210 28,225 30,240 32,255 34,270 36,285 38,3";
var_s1 = var_s1 + "00 40,315 42,330 44,345 46,360 48,15 50,30 52,45 54,60 56,75 58,90 60";
var_Serie = exgraph1.Series().Add(COMVariant::createFromStr(var_s),"Spiral"); com_Serie = var_Serie;
com_Serie.Type("polarArea");
com_Serie.Color("lime");
exgraph1.EndUpdate();
}
|