Hello ,
I'm using the following code to obtain the canvas object:
var bar1 = Find.ById<HtmlCanvas>("bar1");
my question is , how can I verify the content in this object ?
for example of my code:
How can I verify the "chart" since i got the HtmlCanvas object ?
Thanks,
Hanson Wang
I'm using the following code to obtain the canvas object:
var bar1 = Find.ById<HtmlCanvas>("bar1");
my question is , how can I verify the content in this object ?
for example of my code:
bar3 = new RGraph.Bar('bar1', [health, warning, totalServer - health - warning]);bar3.Set('chart.labels', ['Health', 'Warning', 'Error']);bar3.Set('chart.tooltips', function (idx) { return '<b>' + bar3.Get('chart.labels')[idx] + '</b>'; });bar3.Set('chart.colors', ['green', 'gold', 'red']);bar3.Set('chart.colors.sequential', true); //bar3.Set('chart.title', 'Total Instances');bar3.Set('chart.hmargin', 28);bar3.Set('chart.labels.above', true);bar3.Set('chart.title.xaxis.size', 3);bar3.Draw();How can I verify the "chart" since i got the HtmlCanvas object ?
Thanks,
Hanson Wang