Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/amchart/Area.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
Area.prototype.publish("paletteID", "default", "set", "Palette ID", Area.prototype._palette.switch(),{tags:["Basic","Shared"]});
Area.prototype.publish("isStacked", false, "boolean", "Stack Chart",null,{tags:["Basic","Shared"]});
Area.prototype.publish("fillOpacity", 0.7, "number", "Opacity of The Fill Color", null, {min:0,max:1,step:0.001,inputType:"range",tags:["Intermediate","Shared"]});

Area.prototype.publish("tooltipTemplate","[[category]]: [[value]]", "string", "Tooltip Text",null,{tags:["Intermediate"]});
Area.prototype.publish("stackType", "regular", "set", "Stack Type",["none","regular","100%"],{tags:["Basic"]});

Area.prototype.enter = function(domNode, element) {
Expand Down
2 changes: 0 additions & 2 deletions src/amchart/Bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@

Bar.prototype.publish("stackType", "regular", "set", "Stack Type",["none","regular","100%"],{tags:["Basic"]});

Bar.prototype.publish("tooltipTemplate","[[category]]([[title]]): [[value]]", "string", "Tooltip Text",null,{tags:["Intermediate"]});

Bar.prototype.enter = function(domNode, element) {
CommonSerial.prototype.enter.apply(this, arguments);
};
Expand Down
1 change: 0 additions & 1 deletion src/amchart/Bubble.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
Bubble.prototype.implements(INDChart.prototype);

Bubble.prototype.publish("paletteID", "default", "set", "Palette ID", Bubble.prototype._palette.switch(), {tags:["Basic","Shared"]});
Bubble.prototype.publish("tooltipTemplate","x:[[x]] y:[[y]]", "string", "Tooltip Text");

Bubble.prototype.enter = function(domNode, element) {
CommonXY.prototype.enter.apply(this, arguments);
Expand Down
2 changes: 0 additions & 2 deletions src/amchart/Candle.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

Candle.prototype.publish("paletteGrouping", "By Column", "set", "Palette Grouping",["By Category","By Column"],{tags:["Basic"]});

Candle.prototype.publish("tooltipTemplate",'<div style="text-align:left;"><b>[[category]]</b><br/> Open:<b>[[open]]</b> Close:<b>[[close]]</b><br/>Low:<b>[[low]]</b> High:<b>[[high]]</b></div>', "string", "Tooltip Text",null,{tags:["Intermediate"]});

Candle.prototype.publish("columnWidth", 0.62, "number", "Bar Width",null,{tags:["Basic"]});

Candle.prototype.publish("stackType", "regular", "set", "Stack Type",["none","regular","100%"],{tags:["Basic"]});
Expand Down
5 changes: 4 additions & 1 deletion src/amchart/CommonRadar.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@
var context = this;
var gObj = {};

gObj.balloonText = context.tooltipTemplate();
gObj.balloonFunction = function(d) {
var balloonText = d.category + ", " + context.columns()[d.graph.index+1] + ": " + context.data()[d.index][d.graph.columnIndex+1];
return balloonText;
};
gObj.fillAlphas = context.fillOpacity();
gObj.lineAlpha = context.lineOpacity();
gObj.lineThickness = context.lineWidth();
Expand Down
9 changes: 8 additions & 1 deletion src/amchart/CommonSerial.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
this._chart = {};
}
CommonSerial.prototype = Object.create(HTMLWidget.prototype);

CommonSerial.prototype.constructor = CommonSerial;
CommonSerial.prototype._class += " amchart_CommonSerial";

Expand Down Expand Up @@ -163,7 +164,10 @@
var context = this;
var gObj = {};

gObj.balloonText = context.tooltipTemplate();
gObj.balloonFunction = function(d) {
var balloonText = d.category + ", " + context.columns()[d.graph.columnIndex+1] + ": " + context.data()[d.index][d.graph.columnIndex+1];
return balloonText;
};
gObj.lineAlpha = context.lineOpacity();
gObj.lineColor = context.lineColor();
gObj.lineThickness = context.lineWidth();
Expand Down Expand Up @@ -241,6 +245,9 @@
this._chart.addListener("clickGraphItem", function(e) {
context.click(context.rowToObj(context._data[e.index]), context._columns[e.target.columnIndex+1]);
});
this._chart.addListener("rollOverGraphItem", function(e) {
context.tooltipShow(context.rowToObj(context._data[e.index]), context._columns, e.target.columnIndex+1);
});
};

CommonSerial.prototype.update = function(domNode, element) {
Expand Down
5 changes: 4 additions & 1 deletion src/amchart/CommonXY.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@
var context = this;
var gObj = {};

gObj.balloonText = context.tooltipTemplate();
gObj.balloonFunction = function(d) {
var balloonText = context.columns()[d.graph.columnIndex+1] + ": " + context.data()[d.index][d.graph.columnIndex+1];
return balloonText;
};
gObj.lineAlpha = context.lineOpacity();
gObj.lineThickness = context.lineWidth();
gObj.bullet = context.bulletType();
Expand Down
1 change: 0 additions & 1 deletion src/amchart/FloatingColumn.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
FloatingColumn.prototype.publish("Angle3D", 0, "number", "3D Angle (Deg)",null,{tags:["Basic"]});

FloatingColumn.prototype.publish("stackType", "regular", "set", "Stack Type",["none","regular","100%"],{tags:["Basic"]});
FloatingColumn.prototype.publish("tooltipTemplate","[[category]]([[title]]): [[value]]", "string", "Tooltip Text",null,{tags:["Intermediate"]});

FloatingColumn.prototype.testData = function() {
this.columns(["Subject", "open", "close"]);
Expand Down
8 changes: 4 additions & 4 deletions src/amchart/Funnel.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@
Funnel.prototype.publish("neckHeightPercent", 30, "number", "Neck Height %",null,{tags:["Basic"]});
Funnel.prototype.publish("neckWidthPercent", 40, "number", "Neck Width %",null,{tags:["Basic"]});

//TODO
Funnel.prototype.publish("tooltipTemplate","[[category]]([[title]]): [[value]]", "string", "Tooltip Text",null,{tags:["Basic"]});

Funnel.prototype.enter = function(domNode, element) {
CommonFunnel.prototype.enter.apply(this, arguments);
};

Funnel.prototype.updateChartOptions = function() {
CommonFunnel.prototype.updateChartOptions.apply(this, arguments);

this._chart.balloonText = this.tooltipTemplate();
this._chart.balloonFunction = function(d) {
var balloonText = d.title + ", " + d.value;
return balloonText;
};
this._chart.neckHeight = this.neckHeightPercent()+"%";
this._chart.neckWidth = this.neckWidthPercent()+"%";
};
Expand Down
1 change: 0 additions & 1 deletion src/amchart/Line.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
Line.prototype.publish("smoothLines", false, "boolean", "Causes chart data lines to draw smoothly",null,{tags:["Basic","Shared"]});

Line.prototype.publish("stepLines", false, "boolean", "Causes chart data lines to draw smoothly",null,{tags:["Basic"]});
Line.prototype.publish("tooltipTemplate","[[category]]([[title]]): [[value]]", "string", "Tooltip Text",null,{tags:["Basic"]});

Line.prototype.enter = function(domNode, element) {
CommonSerial.prototype.enter.apply(this, arguments);
Expand Down
12 changes: 6 additions & 6 deletions src/amchart/Pie.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
Pie.prototype.publish("fontSize", 11, "number", "Label Font Size",null,{tags:["Basic","Shared"]});
Pie.prototype.publish("fontColor", null, "html-color", "Label Font Color",null,{tags:["Basic","Shared"]});

Pie.prototype.publish("tooltipTemplate","[[title]]<br><span style='font-size:14px'><b>[[value]]</b> ([[percents]]%)</span>", "string", "Tooltip Text",null,{tags:["Intermediate"]});

Pie.prototype.publish("Depth3D", 0, "number", "3D Depth (px)",null,{tags:["Basic"]});
Pie.prototype.publish("Angle3D", 0, "number", "3D Angle (Deg)",null,{tags:["Basic"]});

Expand All @@ -43,13 +41,13 @@
Pie.prototype.publish("useClonedPalette", false, "boolean", "Enable or disable using a cloned palette",null,{tags:["Intermediate","Shared"]});

Pie.prototype.updateChartOptions = function() {
var context = this;

this._chart.type = "pie";
this._chart.radius = this.radius();

this._chart.balloonText = context.tooltipTemplate();

this._chart.balloonFunction = function(d) {
var balloonText = d.title + ", " + d.value;
return balloonText;
};
this._chart.labelPosition = this.labelPosition();

if (this.marginLeft()) { this._chart.marginLeft = this.marginLeft(); }
Expand All @@ -65,6 +63,8 @@
this._chart.fontSize = this.fontSize();
this._chart.color = this.fontColor();


this._chart.outlineColor = "#000000";
this._chart.allLabels = [];
this._chart.pieAlpha = this.pieAlpha();

Expand Down
1 change: 0 additions & 1 deletion src/amchart/Polar.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
Polar.prototype.implements(INDChart.prototype);

Polar.prototype.publish("paletteID", "default", "set", "Palette ID", Polar.prototype._palette.switch(), {tags:["Basic","Shared"]});
Polar.prototype.publish("tooltipTemplate","[[category]]([[title]]): [[value]]", "string", "Tooltip Text",null,{tags:["Intermediate"]});

Polar.prototype.testData = function() {
this.columns(["Subject", "Year 1", "Year 2", "Year 3", "Year 4"]);
Expand Down
1 change: 0 additions & 1 deletion src/amchart/Pyramid.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
Pyramid.prototype.implements(I2DChart.prototype);

Pyramid.prototype.publish("paletteID", "default", "set", "Palette ID", Pyramid.prototype._palette.switch(), {tags:["Basic","Shared"]});
Pyramid.prototype.publish("tooltipTemplate","[[category]]([[title]]): [[value]]", "string", "Tooltip Text",null,{tags:["Intermediate"]});

Pyramid.prototype.testData = function() {
this.columns(["Subject", "Year 1"]);
Expand Down
1 change: 0 additions & 1 deletion src/amchart/Scatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
Scatter.prototype.implements(INDChart.prototype);

Scatter.prototype.publish("paletteID", "default", "set", "Palette ID", Scatter.prototype._palette.switch(), {tags:["Basic","Shared"]});
Scatter.prototype.publish("tooltipTemplate","x:[[x]] y:[[y]]", "string", "Tooltip Text");

Scatter.prototype.enter = function(domNode, element) {
CommonXY.prototype.enter.apply(this, arguments);
Expand Down
2 changes: 1 addition & 1 deletion src/common/HTMLWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,4 +187,4 @@
};

return HTMLWidget;
}));
}));