[JS]
$("#container").ejChart(
{
//...
loaded:"chartLoaded",
});
function chartLoaded(sender) {
var padding = 10;
var title2 = document.getElementById(this._id + "_svg_YAxisTitle_2");
var y = parseInt(title2.getAttribute("y"));
title2.setAttribute("y", y + padding);
} |
$("#container").ejChart(
{
//...
loaded:"chartLoaded",
});
function chartLoaded(sender) {
var titleElement = document.getElementById(this._id + "_svg_YAxisTitle_1");
titleElement.setAttribute("transform", "");
} |
$("#container").ejChart(
{
//...
legendItemRendering: "legend",
});
function legend(sender) {
if (sender.model.series[sender.data.legendItem.SeriesIndex].type == "line")
sender.data.legendItem.Shape = "horizline";
} |
[JS]
$("#container").ejChart(
{
//...
legend:
{
visible: true,
shape: "seriestype"
}
});
|
JS:
$("#container").ejChart(
{
//...
loaded:"chartLoaded",
});
function chartLoaded(sender) {
var padding = -15, titlePadding = 25;
var title2 = document.getElementById(this._id + "_svg_YAxisTitleGroup_2");
title2.setAttribute("transform", "translate(" +padding+",0)");
var yAxisLine3 = document.getElementById(this._id + "_svgyAxis2_YAxisLine_3");
yAxisLine3.setAttribute("transform", "translate(" +padding+",0)");
var yTick3 = document.getElementById(this._id + "_svg_YAxisMajorTicks_3");
yTick3.setAttribute("transform", "translate(" +padding+",0)");
var yLabel3 = document.getElementById(this._id + "_svg_YAxisLabels_3");
yLabel3.setAttribute("transform", "translate(" +padding+",0)");
var title3 = document.getElementById(this._id + "_svg_YAxisTitle_3");
var y = parseInt(title3.getAttribute("y"));
title3.setAttribute("y", y + titlePadding);
}
|
JS:
$("#container").ejChart(
{
//...
legendItemRendering: "legend",
});
function legend(sender) {
if (sender.model.series[sender.data.legendItem.SeriesIndex].type == "line"){
sender.data.legendItem.Shape = "horizline";
sender.data.style.Style.BorderWidth = 4;
}
} |