BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
JS:
//Div to render pie chart
<div id= "hightemp" style="display:none; height:80px;width:80px;">
</div>
$("#hightemp").ejChart({
series:
[{
points: [{ x: 'X1', y: 2 },
{ x: 'X2', y: 1 },
{ x: 'X3', y: 3 },
{ x: 'X4', y: 5 }], type: 'pie'
}],
legend: { visible: false }
});
$("#container").ejChart({
//…
annotations: [
{ visible: true, content: "hightemp", coordinateUnit: "points", x: 10, y: 45 },
{ visible: true, content: "hightemp", coordinateUnit: "points", x: 20, y: 52 },
{ visible: true, content: "hightemp", coordinateUnit: "points", x: 30, y: 59 },
{ visible: true, content: "hightemp", coordinateUnit: "points", x: 40, y: 49 } ],
});
|
[JS]
$(document).ready(function(){
$("#annotation_group_container").click(function(args){
var series = args.target.id.substring(args.target.id.indexOf("_Series"),args.target.id.indexOf("_Point"));
var seriesIndex = parseInt(series.substring(7));
var point =args.target.id.substring(args.target.id.indexOf("_Point"));
var pointIndex = parseInt(point.substring(6));
var chart = $("#hightemp").ejChart("instance");
alert("SeriesIndex : "+seriesIndex + "pointIndex : "+pointIndex +" xValue: "+
chart.model.series[seriesIndex].points[pointIndex].x
+" yValue: "+ chart.model.series[seriesIndex].points[pointIndex].y)
});
});
|
JS:
$("#container").ejChart(
{
annotations: [{
visible: true, content: "hightemp", coordinateUnit: "points", x: 10, y: 45,
margin: {
bottom: 10,
top: 10,
left: 10,
right: 10
}
},
], |