This method is used to store custom information for any chart element.
Format:
chart.Series[0].SetTagFromJs(string value)
Example:
In the example below, SetTagFromJs method is called inside the preLoad event of chart.
|
<div id="VisifireChart0">
<script type="text/javascript">
var vChart1 = new Visifire('SL.Visifire.Charts.xap',500,300);
/* This event will be fired before loading the chart into Silverlight user-control. */ vChart1.preLoad = function(args) {
/* First Chart Reference. If there are multiple charts in a XAML file, array of chart references will be available as an event argument, e.g. args[0], args[1], args[2] etc. */
var chart = args[0];
var tagData = "123"; // Any data chart.Series[0].SetTagFromJs(tagData); };
vChart1.setDataUri("Sample1.xml");
vChart1.render("VisifireChart0");
</script> </div> |