amcharts.rb 3.2.0.0 → 3.2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/amcharts/chart_builder.rb +1 -0
- data/lib/amcharts/chart_builder/function.rb +2 -3
- data/lib/amcharts/chart_builder/literal.rb +7 -0
- data/lib/amcharts/settings.rb +4 -0
- data/lib/amcharts/version.rb +1 -1
- data/spec/chart_builder/function_spec.rb +7 -0
- data/spec/chart_builder/literal_spec.rb +7 -0
- data/vendor/assets/javascripts/amcharts/amstock.js +74 -70
- metadata +6 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjMzZTdjNGQ0ZWMyYWVlMGRlODA5MjUxMmZlZmU3ZmQxZTcxYjJkNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzQ4MTc3OGVjMjQ3ZGQ0MmJhZGFmMWIxYTBjNzE0OWNlMTQ5NWM3Nw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDg4M2M5Y2FmNTFkMWU5MmNmMmFmN2FiYWNhNWE4MjZmNWM0YjY0Y2Y4MDNj
|
10
|
+
ZDkxODhjNmQ5MjcyMjBiNzQ4ODgzY2RmMTZlOTRiMTRkY2IzYTNhODg5ZDRi
|
11
|
+
NjY1NDMyOWQyYzdmYzg5ZGNiNDg2ZDQ2Y2NhMmM2YTg4Y2M2MjM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDBkMzE1NjJkY2U5YWYwYzlkMDkxYTVlMjQxNzQwYzc1YTA5N2RhOTkxNzNm
|
14
|
+
NDM0MGRjY2E3MWEzYjc0YjUxOTgyYTgwYWNlYzU3ZjBiZmM1MmJkMTI2OGVi
|
15
|
+
OGMwNjllNWQyM2NiYWVlNmMwZjU5NTMwYWQ3MjhhNDNlMmJmMGE=
|
data/lib/amcharts/settings.rb
CHANGED
data/lib/amcharts/version.rb
CHANGED
@@ -1,84 +1,88 @@
|
|
1
|
-
AmCharts.AmStockChart=AmCharts.Class({construct:function(){this.version="3.
|
1
|
+
AmCharts.AmStockChart=AmCharts.Class({construct:function(){this.version="3.2.0";this.createEvents("zoomed","rollOverStockEvent","rollOutStockEvent","clickStockEvent","panelRemoved","dataUpdated","init","rendered","drawn");this.colors="#FF6600 #FCD202 #B0DE09 #0D8ECF #2A0CD0 #CD0D74 #CC0000 #00CC00 #0000CC #DDDDDD #999999 #333333 #990000".split(" ");this.firstDayOfWeek=1;this.glueToTheEnd=!1;this.dataSetCounter=-1;this.zoomOutOnDataSetChange=!1;this.panels=[];this.dataSets=[];this.chartCursors=[];
|
2
2
|
this.comparedDataSets=[];this.categoryAxesSettings=new AmCharts.CategoryAxesSettings;this.valueAxesSettings=new AmCharts.ValueAxesSettings;this.panelsSettings=new AmCharts.PanelsSettings;this.chartScrollbarSettings=new AmCharts.ChartScrollbarSettings;this.chartCursorSettings=new AmCharts.ChartCursorSettings;this.stockEventsSettings=new AmCharts.StockEventsSettings;this.legendSettings=new AmCharts.LegendSettings;this.balloon=new AmCharts.AmBalloon;this.previousEndDate=new Date(0);this.previousStartDate=
|
3
|
-
new Date(0);this.dataSetCount=this.graphCount=0;this.chartCreated=!1},write:function(a){this.chartRendered=!1;a="object"!=typeof a?document.getElementById(a):a;this.zoomOutOnDataSetChange&&(this.endDate=this.startDate=void 0);
|
4
|
-
|
5
|
-
|
6
|
-
this.
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
(a=a.
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
this.categoryAxesSettings;
|
17
|
-
b=
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
"
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
f
|
32
|
-
|
33
|
-
(
|
34
|
-
|
35
|
-
m;
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
a
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
a=
|
3
|
+
new Date(0);this.dataSetCount=this.graphCount=0;this.chartCreated=!1},write:function(a){var b=this.exportConfig;b&&AmCharts.AmExport&&!this.AmExport&&(this.AmExport=new AmCharts.AmExport(this,b));this.chartRendered=!1;a="object"!=typeof a?document.getElementById(a):a;this.zoomOutOnDataSetChange&&(this.endDate=this.startDate=void 0);this.categoryAxesSettings=AmCharts.processObject(this.categoryAxesSettings,AmCharts.CategoryAxesSettings);this.valueAxesSettings=AmCharts.processObject(this.valueAxesSettings,
|
4
|
+
AmCharts.ValueAxesSettings);this.chartCursorSettings=AmCharts.processObject(this.chartCursorSettings,AmCharts.ChartCursorSettings);this.chartScrollbarSettings=AmCharts.processObject(this.chartScrollbarSettings,AmCharts.ChartScrollbarSettings);this.legendSettings=AmCharts.processObject(this.legendSettings,AmCharts.LegendSettings);this.panelsSettings=AmCharts.processObject(this.panelsSettings,AmCharts.PanelsSettings);this.stockEventsSettings=AmCharts.processObject(this.stockEventsSettings,AmCharts.StockEventsSettings);
|
5
|
+
a.innerHTML="";this.div=a;this.measure();this.createLayout();this.updateDataSets();this.addDataSetSelector();this.addPeriodSelector();this.addPanels();this.updatePanels();this.addChartScrollbar();this.updateData();this.skipDefault||this.setDefaultPeriod()},setDefaultPeriod:function(a){var b=this.periodSelector;b&&(this.animationPlayed=!1,b.setDefaultPeriod(a))},validateSize:function(){var a,b=this.panels;this.measurePanels();for(a=0;a<b.length;a++)panel=b[a],panel.invalidateSize()},updateDataSets:function(){var a=
|
6
|
+
this.dataSets;!this.mainDataSet&&AmCharts.ifArray(a)&&(this.mainDataSet=this.dataSets[0]);var b;for(b=0;b<a.length;b++){var c=a[b],c=AmCharts.processObject(c,AmCharts.DataSet);a[b]=c;c.id||(this.dataSetCount++,c.id="ds"+this.dataSetCount);void 0===c.color&&(c.color=this.colors.length-1>b?this.colors[b]:AmCharts.randomColor())}},updateEvents:function(a){AmCharts.ifArray(a.stockEvents)&&AmCharts.parseEvents(a,this.panels,this.stockEventsSettings,this.firstDayOfWeek,this,this.dataDateFormat)},getLastDate:function(a){var b=
|
7
|
+
this.dataDateFormat;a=a instanceof Date?new Date(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()):b?AmCharts.stringToDate(a,b):new Date(a);return new Date(AmCharts.changeDate(a,this.categoryAxesSettings.minPeriod,1,!0).getTime()-1)},getFirstDate:function(a){var b=this.dataDateFormat;a=a instanceof Date?new Date(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()):b?AmCharts.stringToDate(a,b):
|
8
|
+
new Date(a);return new Date(AmCharts.resetDateToMin(a,this.categoryAxesSettings.minPeriod,1,this.firstDayOfWeek))},updateData:function(){var a=this.mainDataSet;if(a){var b=this.categoryAxesSettings;-1==AmCharts.getItemIndex(b.minPeriod,b.groupToPeriods)&&b.groupToPeriods.unshift(b.minPeriod);var c=a.dataProvider;if(AmCharts.ifArray(c)){var d=a.categoryField;this.firstDate=this.getFirstDate(c[0][d]);this.lastDate=this.getLastDate(c[c.length-1][d]);this.periodSelector&&this.periodSelector.setRanges(this.firstDate,
|
9
|
+
this.lastDate);a.dataParsed||(AmCharts.parseStockData(a,b.minPeriod,b.groupToPeriods,this.firstDayOfWeek,this.dataDateFormat),a.dataParsed=!0);this.updateComparingData();this.updateEvents(a)}else this.lastDate=this.firstDate=void 0;this.glueToTheEnd&&this.startDate&&this.endDate&&this.lastDate&&(AmCharts.getPeriodDuration(b.minPeriod),this.startDate=new Date(this.startDate.getTime()+(this.lastDate.getTime()-this.endDate.getTime())),this.endDate=this.lastDate,this.updateScrollbar=!0);this.updatePanelsWithNewData()}a=
|
10
|
+
{type:"dataUpdated",chart:this};this.fire(a.type,a)},updateComparingData:function(){var a=this.comparedDataSets,b=this.categoryAxesSettings,c;for(c=0;c<a.length;c++){var d=a[c];d.dataParsed||(AmCharts.parseStockData(d,b.minPeriod,b.groupToPeriods,this.firstDayOfWeek,this.dataDateFormat),d.dataParsed=!0);this.updateEvents(d)}},createLayout:function(){var a=this.div,b,c,d=document.createElement("div");d.style.position="relative";this.containerDiv=d;a.appendChild(d);if(a=this.periodSelector)b=a.position;
|
11
|
+
if(a=this.dataSetSelector)c=a.position;if("left"==b||"left"==c)a=document.createElement("div"),a.style.cssFloat="left",a.style.styleFloat="left",a.style.width="0px",a.style.position="absolute",d.appendChild(a),this.leftContainer=a;if("right"==b||"right"==c)b=document.createElement("div"),b.style.cssFloat="right",b.style.styleFloat="right",b.style.width="0px",d.appendChild(b),this.rightContainer=b;b=document.createElement("div");d.appendChild(b);this.centerContainer=b;d=document.createElement("div");
|
12
|
+
b.appendChild(d);this.panelsContainer=d},addPanels:function(){this.measurePanels();for(var a=this.panels,b=0;b<a.length;b++){var c=a[b],c=AmCharts.processObject(c,AmCharts.StockPanel);a[b]=c;this.addStockPanel(c,b)}this.panelsAdded=!0},measurePanels:function(){this.measure();var a=this.chartScrollbarSettings,b=this.divRealHeight,c=this.panelsSettings.panelSpacing;a.enabled&&(b-=a.height);(a=this.periodSelector)&&!a.vertical&&(a=a.offsetHeight,b-=a+c);(a=this.dataSetSelector)&&!a.vertical&&(a=a.offsetHeight,
|
13
|
+
b-=a+c);a=this.panels;this.panelsContainer.style.height=b+"px";this.chartCursors=[];var d=0,e,g;for(e=0;e<a.length;e++){g=a[e];var h=g.percentHeight;isNaN(h)&&(h=100/a.length,g.percentHeight=h);d+=h}this.panelsHeight=Math.max(b-c*(a.length-1),0);for(e=0;e<a.length;e++)g=a[e],g.percentHeight=g.percentHeight/d*100,g.panelBox&&(g.panelBox.style.height=Math.round(g.percentHeight*this.panelsHeight/100)+"px")},addStockPanel:function(a,b){var c=this.panelsSettings,d=document.createElement("div");d.className=
|
14
|
+
"amChartsPanel";0<b&&!this.panels[b-1].showCategoryAxis&&(d.style.marginTop=c.panelSpacing+"px");a.panelBox=d;a.stockChart=this;a.id||(a.id="stockPanel"+b);a.pathToImages=this.pathToImages;d.style.height=Math.round(a.percentHeight*this.panelsHeight/100)+"px";d.style.width="100%";this.panelsContainer.appendChild(d);0<c.backgroundAlpha&&(d.style.backgroundColor=c.backgroundColor);if(d=a.stockLegend)d.container=void 0,d.title=a.title,d.marginLeft=c.marginLeft,d.marginRight=c.marginRight,d.verticalGap=
|
15
|
+
3,d.position="top",AmCharts.copyProperties(this.legendSettings,d),a.addLegend(d);a.zoomOutText="";a.removeChartCursor();this.addCursor(a)},enableCursors:function(a){var b=this.chartCursors,c;for(c=0;c<b.length;c++)b[c].enabled=a},updatePanels:function(){var a=this.panels,b;for(b=0;b<a.length;b++)this.updatePanel(a[b]);this.mainDataSet&&this.updateGraphs();this.currentPeriod=void 0},updatePanel:function(a){a.seriesIdField="amCategoryIdField";a.dataProvider=[];a.chartData=[];a.graphs=[];var b=a.categoryAxis,
|
16
|
+
c=this.categoryAxesSettings;AmCharts.copyProperties(this.panelsSettings,a);AmCharts.copyProperties(c,b);b.parseDates=!0;a.zoomOutOnDataUpdate=!1;a.showCategoryAxis?"top"==b.position?a.marginTop=c.axisHeight:a.marginBottom=c.axisHeight:(a.categoryAxis.labelsEnabled=!1,a.chartCursor&&(a.chartCursor.categoryBalloonEnabled=!1));var c=a.valueAxes,d=c.length,e;0===d&&(e=new AmCharts.ValueAxis,a.addValueAxis(e));b=new AmCharts.AmBalloon;AmCharts.copyProperties(this.balloon,b);a.balloon=b;c=a.valueAxes;d=
|
17
|
+
c.length;for(b=0;b<d;b++)e=c[b],AmCharts.copyProperties(this.valueAxesSettings,e);a.listenersAdded=!1;a.write(a.panelBox)},zoom:function(a,b){this.zoomChart(a,b)},zoomOut:function(){this.zoomChart(this.firstDate,this.lastDate)},updatePanelsWithNewData:function(){var a=this.mainDataSet;if(a){var b=this.panels;this.currentPeriod=void 0;var c;for(c=0;c<b.length;c++){var d=b[c];d.categoryField=a.categoryField;0===a.dataProvider.length&&(d.dataProvider=[])}if(b=this.scrollbarChart){c=this.categoryAxesSettings;
|
18
|
+
d=c.minPeriod;b.categoryField=a.categoryField;if(0<a.dataProvider.length){var e=this.chartScrollbarSettings.usePeriod;b.dataProvider=e?a.agregatedDataProviders[e]:a.agregatedDataProviders[d]}else b.dataProvider=[];e=b.categoryAxis;e.minPeriod=d;e.firstDayOfWeek=this.firstDayOfWeek;e.equalSpacing=c.equalSpacing;b.validateData()}0<a.dataProvider.length&&this.zoomChart(this.startDate,this.endDate)}this.panelDataInvalidated=!1},addChartScrollbar:function(){var a=this.chartScrollbarSettings,b=this.scrollbarChart;
|
19
|
+
b&&(b.clear(),b.destroy());if(a.enabled){var c=this.panelsSettings,d=this.categoryAxesSettings,b=new AmCharts.AmSerialChart;b.pathToImages=this.pathToImages;b.autoMargins=!1;this.scrollbarChart=b;b.id="scrollbarChart";b.scrollbarOnly=!0;b.zoomOutText="";b.panEventsEnabled=this.panelsSettings.panEventsEnabled;b.marginLeft=c.marginLeft;b.marginRight=c.marginRight;b.marginTop=0;b.marginBottom=0;var c=d.dateFormats,e=b.categoryAxis;e.boldPeriodBeginning=d.boldPeriodBeginning;c&&(e.dateFormats=d.dateFormats);
|
20
|
+
e.labelsEnabled=!1;e.parseDates=!0;d=a.graph;if(AmCharts.isString(d)){c=this.panels;for(e=0;e<c.length;e++){var g=AmCharts.getObjById(c[e].stockGraphs,a.graph);g&&(d=g)}a.graph=d}var h;d&&(h=new AmCharts.AmGraph,h.valueField=d.valueField,h.periodValue=d.periodValue,h.type=d.type,h.connect=d.connect,b.addGraph(h));d=new AmCharts.ChartScrollbar;b.addChartScrollbar(d);AmCharts.copyProperties(a,d);d.scrollbarHeight=a.height;d.graph=h;this.removeListener(d,"zoomed",this.handleScrollbarZoom);this.listenTo(d,
|
21
|
+
"zoomed",this.handleScrollbarZoom);h=document.createElement("div");h.style.height=a.height+"px";d=this.periodSelectorContainer;c=this.periodSelector;e=this.centerContainer;"bottom"==a.position?c?"bottom"==c.position?e.insertBefore(h,d):e.appendChild(h):e.appendChild(h):c?"top"==c.position?e.insertBefore(h,d.nextSibling):e.insertBefore(h,e.firstChild):e.insertBefore(h,e.firstChild);b.write(h)}},handleScrollbarZoom:function(a){if(this.skipScrollbarEvent)this.skipScrollbarEvent=!1;else{var b=a.endDate,
|
22
|
+
c={};c.startDate=a.startDate;c.endDate=b;this.updateScrollbar=!1;this.handleZoom(c)}},addPeriodSelector:function(){var a=this.periodSelector;if(a){this.periodSelector=a=AmCharts.processObject(a,AmCharts.PeriodSelector);var b=this.categoryAxesSettings.minPeriod;a.minDuration=AmCharts.getPeriodDuration(b);a.minPeriod=b;a.chart=this;var c=this.dataSetSelector,d,b=this.dssContainer;c&&(d=c.position);var c=this.panelsSettings.panelSpacing,e=document.createElement("div");this.periodSelectorContainer=e;
|
23
|
+
var g=this.leftContainer,h=this.rightContainer,f=this.centerContainer,m=this.panelsContainer,k=a.width+2*c+"px";switch(a.position){case "left":g.style.width=a.width+"px";g.appendChild(e);f.style.paddingLeft=k;break;case "right":f.style.marginRight=k;h.appendChild(e);h.style.width=a.width+"px";break;case "top":m.style.clear="both";"top"==d?f.insertAfter(e,b):f.insertBefore(e,m);e.style.paddingBottom=c+"px";break;case "bottom":e.style.marginTop=c+"px","bottom"==d?f.insertBefore(e,b):f.appendChild(e)}this.removeListener(a,
|
24
|
+
"changed",this.handlePeriodSelectorZoom);this.listenTo(a,"changed",this.handlePeriodSelectorZoom);a.write(e)}},addDataSetSelector:function(){var a=this.dataSetSelector;if(a){this.dataSetSelector=a=AmCharts.processObject(a,AmCharts.DataSetSelector);a.chart=this;a.dataProvider=this.dataSets;var b=a.position,c=this.panelsSettings.panelSpacing,d=document.createElement("div");this.dssContainer=d;var e=this.leftContainer,g=this.rightContainer,h=this.centerContainer,f=this.panelsContainer,c=a.width+2*c+
|
25
|
+
"px";switch(b){case "left":e.style.width=a.width+"px";e.appendChild(d);h.style.paddingLeft=c;break;case "right":h.style.marginRight=c;g.appendChild(d);g.style.width=a.width+"px";break;case "top":f.style.clear="both";h.insertBefore(d,f);break;case "bottom":h.appendChild(d)}a.write(d)}},handlePeriodSelectorZoom:function(a){var b=this.scrollbarChart;b&&(b.updateScrollbar=!0);a.predefinedPeriod?(this.predefinedStart=a.startDate,this.predefinedEnd=a.endDate):this.predefinedEnd=this.predefinedStart=null;
|
26
|
+
this.zoomChart(a.startDate,a.endDate)},addCursor:function(a){var b=this.chartCursorSettings;if(b.enabled){var c=new AmCharts.ChartCursor;AmCharts.copyProperties(b,c);a.removeChartCursor();a.addChartCursor(c);this.removeListener(c,"changed",this.handleCursorChange);this.removeListener(c,"onHideCursor",this.hideChartCursor);this.removeListener(c,"zoomed",this.handleCursorZoom);this.listenTo(c,"changed",this.handleCursorChange);this.listenTo(c,"onHideCursor",this.hideChartCursor);this.listenTo(c,"zoomed",
|
27
|
+
this.handleCursorZoom);this.chartCursors.push(c)}},hideChartCursor:function(){var a=this.chartCursors,b;for(b=0;b<a.length;b++){var c=a[b];c.hideCursor(!1);(c=c.chart)&&c.updateLegendValues()}},handleCursorZoom:function(a){var b=this.scrollbarChart;b&&(b.updateScrollbar=!0);var b={},c;if(this.categoryAxesSettings.equalSpacing){var d=this.mainDataSet.categoryField,e=this.mainDataSet.agregatedDataProviders[this.currentPeriod];c=new Date(e[a.start][d]);a=new Date(e[a.end][d])}else c=new Date(a.start),
|
28
|
+
a=new Date(a.end);b.startDate=c;b.endDate=a;this.handleZoom(b)},handleZoom:function(a){this.zoomChart(a.startDate,a.endDate)},zoomChart:function(a,b){var c=this,d=c.firstDate,e=c.lastDate,g=c.currentPeriod,h=c.categoryAxesSettings,f=h.minPeriod,m=c.panelsSettings,k=c.periodSelector,u=c.panels,y=c.comparedGraphs,r=c.scrollbarChart,x=c.firstDayOfWeek;if(d&&e){a||(a=d);b||(b=e);if(g){var s=AmCharts.extractPeriod(g);a.getTime()==b.getTime()&&s!=f&&(b=AmCharts.changeDate(b,s.period,s.count),b.setTime(b.getTime()-
|
29
|
+
1))}a.getTime()<d.getTime()&&(a=d);a.getTime()>e.getTime()&&(a=e);b.getTime()<d.getTime()&&(b=d);b.getTime()>e.getTime()&&(b=e);h=AmCharts.getItemIndex(f,h.groupToPeriods);e=g;g=c.choosePeriod(h,a,b);c.currentPeriod=g;h=AmCharts.extractPeriod(g);AmCharts.getPeriodDuration(h.period,h.count);AmCharts.getPeriodDuration(f);1>b.getTime()-a.getTime()&&(a=new Date(b.getTime()-1));f=new Date(a);f.getTime()==d.getTime()&&(f=AmCharts.resetDateToMin(a,h.period,h.count,x));for(d=0;d<u.length;d++){s=u[d];if(g!=
|
30
|
+
e){var n;for(n=0;n<y.length;n++){var w=y[n].graph;w.dataProvider=w.dataSet.agregatedDataProviders[g]}n=s.categoryAxis;n.firstDayOfWeek=x;n.minPeriod=g;s.dataProvider=c.mainDataSet.agregatedDataProviders[g];if(n=s.chartCursor)n.categoryBalloonDateFormat=c.chartCursorSettings.categoryBalloonDateFormat(h.period),s.showCategoryAxis||(n.categoryBalloonEnabled=!1);s.startTime=f.getTime();s.endTime=b.getTime();s.validateData(!0)}n=!1;s.chartCursor&&s.chartCursor.panning&&(n=!0);n||(s.startTime=void 0,s.endTime=
|
31
|
+
void 0,s.zoomToDates(f,b));0<m.startDuration&&c.animationPlayed?(s.startDuration=0,s.animateAgain()):0<m.startDuration&&s.animateAgain()}c.animationPlayed=!0;AmCharts.extractPeriod(g);m=new Date(b);r&&c.updateScrollbar&&(r.zoomToDates(a,m),c.skipScrollbarEvent=!0,setTimeout(function(){c.resetSkip.call(c)},100));c.updateScrollbar=!0;c.startDate=a;c.endDate=b;k&&k.zoom(a,b);if(a.getTime()!=c.previousStartDate.getTime()||b.getTime()!=c.previousEndDate.getTime())k={type:"zoomed"},k.startDate=a,k.endDate=
|
32
|
+
b,k.chart=c,k.period=g,c.fire(k.type,k),c.previousStartDate=new Date(a),c.previousEndDate=new Date(b)}c.eventsHidden&&c.showHideEvents(!1);c.chartCreated||(g="init",c.fire(g,{type:g,chart:c}));c.chartRendered||(g="rendered",c.fire(g,{type:g,chart:c}),c.chartRendered=!0);g="drawn";c.fire(g,{type:g,chart:c});c.chartCreated=!0;c.animationPlayed=!0},resetSkip:function(){this.skipScrollbarEvent=!1},updateGraphs:function(){this.getSelections();if(0<this.dataSets.length){var a=this.panels;this.comparedGraphs=
|
33
|
+
[];var b;for(b=0;b<a.length;b++){var c=a[b],d=c.valueAxes,e;for(e=0;e<d.length;e++){var g=d[e];g.prevLog&&(g.logarithmic=g.prevLog);g.recalculateToPercents="always"==c.recalculateToPercents?!0:!1}d=this.mainDataSet;e=this.comparedDataSets;g=c.stockGraphs;c.graphs=[];var h;for(h=0;h<g.length;h++){var f=g[h],f=AmCharts.processObject(f,AmCharts.StockGraph);g[h]=f;if(!f.title||f.resetTitleOnDataSetChange)f.title=d.title,f.resetTitleOnDataSetChange=!0;f.useDataSetColors&&(f.lineColor=d.color,f.fillColors=
|
34
|
+
void 0,f.bulletColor=void 0);c.addGraph(f);var m=!1;"always"==c.recalculateToPercents&&(m=!0);var k=c.stockLegend,u,y,r,x;k&&(k=AmCharts.processObject(k,AmCharts.StockLegend),c.stockLegend=k,u=k.valueTextComparing,y=k.valueTextRegular,r=k.periodValueTextComparing,x=k.periodValueTextRegular);if(f.comparable){var s=e.length;0<s&&f.valueAxis.logarithmic&&"never"!=c.recalculateToPercents&&(f.valueAxis.logarithmic=!1,f.valueAxis.prevLog=!0);0<s&&"whenComparing"==c.recalculateToPercents&&(f.valueAxis.recalculateToPercents=
|
35
|
+
!0);k&&f.valueAxis&&!0===f.valueAxis.recalculateToPercents&&(m=!0);var n;for(n=0;n<s;n++){var w=e[n],p=f.comparedGraphs[w.id];p||(p=new AmCharts.AmGraph,p.id="comparedGraph"+n+"_"+w.id);p.periodValue=f.periodValue;p.dataSet=w;f.comparedGraphs[w.id]=p;p.seriesIdField="amCategoryIdField";p.connect=f.connect;var l=f.compareField;l||(l=f.valueField);var D=!1,A=w.fieldMappings,z;for(z=0;z<A.length;z++)A[z].toField==l&&(D=!0);if(D){p.valueField=l;p.title=w.title;p.lineColor=w.color;f.compareGraphType&&
|
36
|
+
(p.type=f.compareGraphType);l=f.compareGraphLineThickness;isNaN(l)||(p.lineThickness=l);l=f.compareGraphDashLength;isNaN(l)||(p.dashLength=l);l=f.compareGraphLineAlpha;isNaN(l)||(p.lineAlpha=l);l=f.compareGraphCornerRadiusTop;isNaN(l)||(p.cornerRadiusTop=l);l=f.compareGraphCornerRadiusBottom;isNaN(l)||(p.cornerRadiusBottom=l);l=f.compareGraphBalloonColor;isNaN(l)||(p.balloonColor=l);if(l=f.compareGraphFillColors)p.fillColors=l;if(l=f.compareGraphNegativeFillColors)p.negativeFillColors=l;if(l=f.compareGraphFillAlphas)p.fillAlphas=
|
37
|
+
l;if(l=f.compareGraphNegativeFillAlphas)p.negativeFillAlphas=l;if(l=f.compareGraphBullet)p.bullet=l;if(l=f.compareGraphNumberFormatter)p.numberFormatter=l;if(l=f.compareGraphBalloonText)p.balloonText=l;l=f.compareGraphBulletSize;isNaN(l)||(p.bulletSize=l);l=f.compareGraphBulletAlpha;isNaN(l)||(p.bulletAlpha=l);l=f.compareGraphBulletBorderAlpha;isNaN(l)||(p.bulletBorderAlpha=l);if(l=f.compareGraphBulletBorderColor)p.bulletBorderColor=l;l=f.compareGraphBulletBorderThickness;isNaN(l)||(p.bulletBorderThickness=
|
38
|
+
l);p.visibleInLegend=f.compareGraphVisibleInLegend;p.balloonFunction=f.compareGraphBalloonFunction;p.valueAxis=f.valueAxis;k&&(m&&u?(p.legendValueText=u,p.legendPeriodValueText=r):(y&&(p.legendValueText=y),x&&(p.legendPeriodValueText=x)));c.addGraph(p);this.comparedGraphs.push({graph:p,dataSet:w})}}}k&&(m&&u?(f.legendValueText=u,f.legendPeriodValueText=r):(y&&(f.legendValueText=y),x&&(f.legendPeriodValueText=x)))}}}},choosePeriod:function(a,b,c){var d=this.categoryAxesSettings,e=d.groupToPeriods,
|
39
|
+
g=e[a],e=e[a+1],h=AmCharts.extractPeriod(g),h=AmCharts.getPeriodDuration(h.period,h.count),f=b.getTime(),m=c.getTime(),d=d.maxSeries;return(m-f)/h>d&&0<d&&e?this.choosePeriod(a+1,b,c):g},handleCursorChange:function(a){var b=a.target,c=a.position;a=a.zooming;var d=this.chartCursors,e;for(e=0;e<d.length;e++){var g=d[e];g!=b&&c&&(g.isZooming(a),g.previousMousePosition=NaN,g.forceShow=!0,g.setPosition(c,!1))}},getSelections:function(){var a=[],b=this.dataSets,c;for(c=0;c<b.length;c++){var d=b[c];d.compared&&
|
40
|
+
a.push(d)}this.comparedDataSets=a;b=this.panels;for(c=0;c<b.length;c++)d=b[c],"never"!=d.recalculateToPercents&&0<a.length?d.hideDrawingIcons(!0):d.drawingIconsEnabled&&d.hideDrawingIcons(!1)},addPanel:function(a){this.panels.push(a);AmCharts.removeChart(a);AmCharts.addChart(a)},addPanelAt:function(a,b){this.panels.splice(b,0,a);AmCharts.removeChart(a);AmCharts.addChart(a)},removePanel:function(a){var b=this.panels,c;for(c=b.length-1;0<=c;c--)if(b[c]==a){var d={type:"panelRemoved",panel:a,chart:this};
|
41
|
+
this.fire(d.type,d);b.splice(c,1);a.destroy();a.clear()}},validateData:function(){this.resetDataParsed();this.updateDataSets();this.mainDataSet.compared=!1;this.updateGraphs();this.updateData();var a=this.dataSetSelector;a&&a.write(a.div)},resetDataParsed:function(){var a=this.dataSets,b;for(b=0;b<a.length;b++)a[b].dataParsed=!1},validateNow:function(){this.skipDefault=!0;this.clear(!0);this.write(this.div)},hideStockEvents:function(){this.showHideEvents(!1);this.eventsHidden=!0},showStockEvents:function(){this.showHideEvents(!0);
|
42
|
+
this.eventsHidden=!1},showHideEvents:function(a){var b=this.panels,c;for(c=0;c<b.length;c++){var d=b[c].graphs,e;for(e=0;e<d.length;e++){var g=d[e];!0===a?g.showBullets():g.hideBullets()}}},invalidateSize:function(){var a=this;clearTimeout(a.validateTO);var b=setTimeout(function(){a.validateNow()},5);a.validateTO=b},measure:function(){var a=this.div,b=a.offsetWidth,c=a.offsetHeight;a.clientHeight&&(b=a.clientWidth,c=a.clientHeight);this.divRealWidth=b;this.divRealHeight=c},clear:function(a){var b=
|
43
|
+
this.panels,c;if(b)for(c=0;c<b.length;c++){var d=b[c];a||(d.cleanChart(),d.destroy());d.clear(a)}(b=this.scrollbarChart)&&b.clear();if(b=this.div)b.innerHTML="";a||(this.div=null,AmCharts.deleteObject(this))}});AmCharts.StockEvent=AmCharts.Class({construct:function(){}});AmCharts.DataSet=AmCharts.Class({construct:function(){this.fieldMappings=[];this.dataProvider=[];this.agregatedDataProviders=[];this.stockEvents=[];this.compared=!1;this.showInCompare=this.showInSelect=!0}});AmCharts.PeriodSelector=AmCharts.Class({construct:function(){this.createEvents("changed");this.inputFieldsEnabled=!0;this.position="bottom";this.width=180;this.fromText="From: ";this.toText="to: ";this.periodsText="Zoom: ";this.periods=[];this.inputFieldWidth=100;this.dateFormat="DD-MM-YYYY";this.hideOutOfScopePeriods=!0},zoom:function(a,b){this.inputFieldsEnabled&&(this.startDateField.value=AmCharts.formatDate(a,this.dateFormat),this.endDateField.value=AmCharts.formatDate(b,this.dateFormat));this.markButtonAsSelected()},
|
44
|
+
write:function(a){var b=this;a.className="amChartsPeriodSelector";b.div=a;a.innerHTML="";var c=b.position,c="top"==c||"bottom"==c?!1:!0;b.vertical=c;var d=0,e=0;if(b.inputFieldsEnabled){var g=document.createElement("div");a.appendChild(g);var h=document.createTextNode(b.fromText);g.appendChild(h);c?AmCharts.addBr(g):(g.style.styleFloat="left",g.style.display="inline");var f=document.createElement("input");f.className="amChartsInputField";f.style.textAlign="center";f.onblur=function(){b.handleCalChange()};
|
45
|
+
AmCharts.isNN&&f.addEventListener("keypress",function(a){b.handleCalendarChange.call(b,a)},!0);AmCharts.isIE&&f.attachEvent("onkeypress",function(a){b.handleCalendarChange.call(b,a)});g.appendChild(f);b.startDateField=f;if(c)h=b.width-6+"px",AmCharts.addBr(g);else{var h=b.inputFieldWidth+"px",m=document.createTextNode(" ");g.appendChild(m)}f.style.width=h;f=document.createTextNode(b.toText);g.appendChild(f);c&&AmCharts.addBr(g);f=document.createElement("input");f.className="amChartsInputField";f.style.textAlign=
|
46
|
+
"center";f.onblur=function(){b.handleCalChange()};AmCharts.isNN&&f.addEventListener("keypress",function(a){b.handleCalendarChange.call(b,a)},!0);AmCharts.isIE&&f.attachEvent("onkeypress",function(a){b.handleCalendarChange.call(b,a)});g.appendChild(f);b.endDateField=f;c?AmCharts.addBr(g):d=f.offsetHeight+2;h&&(f.style.width=h)}g=b.periods;if(AmCharts.ifArray(g)){h=document.createElement("div");c||(h.style.cssFloat="right",h.style.styleFloat="right",h.style.display="inline");a.appendChild(h);c&&AmCharts.addBr(h);
|
47
|
+
a=document.createTextNode(b.periodsText);h.appendChild(a);b.periodContainer=h;var k;for(a=0;a<g.length;a++)f=g[a],k=document.createElement("input"),k.type="button",k.value=f.label,k.period=f.period,k.count=f.count,k.periodObj=f,k.className="amChartsButton",c&&(k.style.width=b.width-1+"px"),h.appendChild(k),b.addEventListeners(k),f.button=k;!c&&k&&(e=k.offsetHeight);b.offsetHeight=Math.max(d,e)}},addEventListeners:function(a){var b=this;AmCharts.isNN&&a.addEventListener("click",function(a){b.handlePeriodChange.call(b,
|
45
48
|
a)},!0);AmCharts.isIE&&a.attachEvent("onclick",function(a){b.handlePeriodChange.call(b,a)})},getPeriodDates:function(){var a=this.periods,b;for(b=0;b<a.length;b++)this.selectPeriodButton(a[b],!0)},handleCalendarChange:function(a){13==a.keyCode&&this.handleCalChange()},handleCalChange:function(){var a=this.dateFormat,b=AmCharts.stringToDate(this.startDateField.value,a),a=this.chart.getLastDate(AmCharts.stringToDate(this.endDateField.value,a));try{this.startDateField.blur(),this.endDateField.blur()}catch(c){}if(b&&
|
46
|
-
a){var d={type:"changed"};d.startDate=b;d.endDate=a;d.chart=this.chart;this.fire(d.type,d)}},handlePeriodChange:function(a){this.selectPeriodButton((a.srcElement?a.srcElement:a.target).periodObj)},setRanges:function(a,b){this.firstDate=a;this.lastDate=b;this.getPeriodDates()},selectPeriodButton:function(a,b){var c=a.button,d=c.count,e=c.period,
|
47
|
-
this.lastDate):(k=AmCharts.getPeriodDuration(e,d),this.selectFromStart?(f
|
48
|
-
c={type:"changed"},c.startDate=
|
49
|
-
b;for(b=a.length-1;0<=b;b--)a[b].button.className="amChartsButton"},setDefaultPeriod:function(){var a=this.periods,b;for(b=0;b<a.length;b++){var c=a[b];c.selected&&this.selectPeriodButton(c)}}});AmCharts.StockGraph=AmCharts.Class({inherits:AmCharts.AmGraph,construct:function(){AmCharts.StockGraph.base.construct.call(this);this.useDataSetColors=!0;this.periodValue="Close";this.compareGraphType="line";this.compareGraphVisibleInLegend=!0;this.comparable=this.resetTitleOnDataSetChange=!1;this.comparedGraphs={};this.showEventsOnComparedGraphs=!1}});AmCharts.StockPanel=AmCharts.Class({inherits:AmCharts.AmSerialChart,construct:function(){AmCharts.StockPanel.base.construct.call(this);this.showCategoryAxis=!0;this.recalculateToPercents="whenComparing";this.panelHeaderPaddingBottom=this.panelHeaderPaddingLeft=this.panelHeaderPaddingRight=this.panelHeaderPaddingTop=0;this.trendLineAlpha=1;this.trendLineColor="#00CC00";this.trendLineColorHover="#CC0000";this.trendLineThickness=2;this.trendLineDashLength=0;this.stockGraphs=[];this.drawingIconsEnabled=
|
49
|
+
a){var d={type:"changed"};d.startDate=b;d.endDate=a;d.chart=this.chart;this.fire(d.type,d)}},handlePeriodChange:function(a){this.selectPeriodButton((a.srcElement?a.srcElement:a.target).periodObj)},setRanges:function(a,b){this.firstDate=a;this.lastDate=b;this.getPeriodDates()},selectPeriodButton:function(a,b){var c=a.button,d=c.count,e=c.period,g,h,f=this.firstDate,m=this.lastDate,k;f&&m&&("MAX"==e?(g=f,h=m):"YTD"==e?(g=new Date,g.setMonth(0,1),g.setHours(0,0,0,0),0===d&&g.setDate(g.getDate()-1),h=
|
50
|
+
this.lastDate):(k=AmCharts.getPeriodDuration(e,d),this.selectFromStart?(g=f,h=new Date(f.getTime()+k-1)):(g=new Date(m.getTime()-k+1),h=m)),a.startTime=g.getTime(),this.hideOutOfScopePeriods&&(b&&a.startTime<f.getTime()?c.style.display="none":c.style.display="inline"),g.getTime()>m.getTime()&&(k=AmCharts.getPeriodDuration("DD",1),g=new Date(m.getTime()-k)),g.getTime()<f.getTime()&&(g=f),"YTD"==e&&(a.startTime=g.getTime()),a.endTime=h.getTime(),b||(this.skipMark=!0,this.unselectButtons(),c.className=
|
51
|
+
"amChartsButtonSelected",c={type:"changed"},c.startDate=g,c.endDate=h,c.predefinedPeriod=e,c.chart=this.chart,c.count=d,this.fire(c.type,c)))},markButtonAsSelected:function(){if(!this.skipMark){var a=this.chart,b=this.periods,c=a.startDate.getTime(),a=a.endDate.getTime();this.unselectButtons();var d;for(d=b.length-1;0<=d;d--){var e=b[d],g=e.button;e.startTime&&e.endTime&&c==e.startTime&&a==e.endTime&&(this.unselectButtons(),g.className="amChartsButtonSelected")}}this.skipMark=!1},unselectButtons:function(){var a=
|
52
|
+
this.periods,b;for(b=a.length-1;0<=b;b--)a[b].button.className="amChartsButton"},setDefaultPeriod:function(){var a=this.periods,b;for(b=0;b<a.length;b++){var c=a[b];c.selected&&this.selectPeriodButton(c)}}});AmCharts.StockGraph=AmCharts.Class({inherits:AmCharts.AmGraph,construct:function(){AmCharts.StockGraph.base.construct.call(this);this.useDataSetColors=!0;this.periodValue="Close";this.compareGraphType="line";this.compareGraphVisibleInLegend=!0;this.comparable=this.resetTitleOnDataSetChange=!1;this.comparedGraphs={};this.showEventsOnComparedGraphs=!1}});AmCharts.StockPanel=AmCharts.Class({inherits:AmCharts.AmSerialChart,construct:function(){AmCharts.StockPanel.base.construct.call(this);this.showCategoryAxis=!0;this.recalculateToPercents="whenComparing";this.panelHeaderPaddingBottom=this.panelHeaderPaddingLeft=this.panelHeaderPaddingRight=this.panelHeaderPaddingTop=0;this.trendLineAlpha=1;this.trendLineColor="#00CC00";this.trendLineColorHover="#CC0000";this.trendLineThickness=2;this.trendLineDashLength=0;this.stockGraphs=[];this.drawingIconsEnabled=
|
50
53
|
!1;this.iconSize=18;this.autoMargins=this.allowTurningOff=this.eraseAll=this.erasingEnabled=this.drawingEnabled=!1},initChart:function(a){AmCharts.StockPanel.base.initChart.call(this,a);this.drawingIconsEnabled&&this.createDrawIcons();if(a=this.chartCursor)this.removeListener(a,"draw",this.handleDraw),this.listenTo(a,"draw",this.handleDraw)},addStockGraph:function(a){this.stockGraphs.push(a);return a},removeStockGraph:function(a){var b=this.stockGraphs,c;for(c=b.length-1;0<=c;c--)b[c]==a&&b.splice(c,
|
51
|
-
1)},createDrawIcons:function(){var a=this,b=a.iconSize,c=a.container,d=a.pathToImages,e=a.realWidth-2*b-1-a.marginRight,
|
52
|
-
b+1,0,b,b);a.eraserButton=k;h.mouseup(function(){a.handleEraserClick()});
|
54
|
+
1)},createDrawIcons:function(){var a=this,b=a.iconSize,c=a.container,d=a.pathToImages,e=a.realWidth-2*b-1-a.marginRight,g=AmCharts.rect(c,b,b,"#000",0.005),h=AmCharts.rect(c,b,b,"#000",0.005);h.translate(b+1,0);var f=c.image(d+"pencilIcon.gif",0,0,b,b);a.pencilButton=f;h.setAttr("cursor","pointer");g.setAttr("cursor","pointer");g.mouseup(function(){a.handlePencilClick()});var m=c.image(d+"pencilIconH.gif",0,0,b,b);a.pencilButtonPushed=m;a.drawingEnabled||m.hide();var k=c.image(d+"eraserIcon.gif",
|
55
|
+
b+1,0,b,b);a.eraserButton=k;h.mouseup(function(){a.handleEraserClick()});g.touchend&&(g.touchend(function(){a.handlePencilClick()}),h.touchend(function(){a.handleEraserClick()}));b=c.image(d+"eraserIconH.gif",b+1,0,b,b);a.eraserButtonPushed=b;a.erasingEnabled||b.hide();c=c.set([f,m,k,b,g,h]);c.translate(e,1);this.hideIcons&&c.hide()},handlePencilClick:function(){var a=!this.drawingEnabled;this.disableDrawing(!a);this.erasingEnabled=!1;this.eraserButtonPushed.hide();a?this.pencilButtonPushed.show():
|
53
56
|
(this.pencilButtonPushed.hide(),this.setMouseCursor("auto"))},disableDrawing:function(a){this.drawingEnabled=!a;var b=this.chartCursor;this.stockChart.enableCursors(a);b&&b.enableDrawing(!a)},handleEraserClick:function(){this.disableDrawing(!0);this.pencilButtonPushed.hide();if(this.eraseAll){var a=this.trendLines,b;for(b=a.length-1;0<=b;b--){var c=a[b];c.isProtected||this.removeTrendLine(c)}this.validateNow()}else(this.erasingEnabled=a=!this.erasingEnabled)?(this.eraserButtonPushed.show(),this.setTrendColorHover(this.trendLineColorHover),
|
54
|
-
this.setMouseCursor("auto")):(this.eraserButtonPushed.hide(),this.setTrendColorHover())},setTrendColorHover:function(a){var b=this.trendLines,c;for(c=b.length-1;0<=c;c--){var d=b[c];d.isProtected||(d.rollOverColor=a)}},handleDraw:function(a){var b=this.drawOnAxis;b||(b=this.valueAxes[0]);var c=this.categoryAxis,d=a.initialX,e=a.finalX,
|
55
|
-
b.coordinateToValue(a);h.lineAlpha=this.trendLineAlpha;h.lineColor=this.trendLineColor;h.lineThickness=this.trendLineThickness;h.dashLength=this.trendLineDashLength;h.valueAxis=b;h.categoryAxis=c;this.addTrendLine(h);this.listenTo(h,"click",this.handleTrendClick);this.validateNow()},hideDrawingIcons:function(a){(this.hideIcons=a)&&this.disableDrawing(a)},handleTrendClick:function(a){this.erasingEnabled&&(a=a.trendLine,this.eraseAll||
|
57
|
+
this.setMouseCursor("auto")):(this.eraserButtonPushed.hide(),this.setTrendColorHover())},setTrendColorHover:function(a){var b=this.trendLines,c;for(c=b.length-1;0<=c;c--){var d=b[c];d.isProtected||(d.rollOverColor=a)}},handleDraw:function(a){var b=this.drawOnAxis;AmCharts.isString(b)&&(b=this.getValueAxisById(b));b||(b=this.valueAxes[0]);this.drawOnAxis=b;var c=this.categoryAxis,d=a.initialX,e=a.finalX,g=a.initialY;a=a.finalY;var h=new AmCharts.TrendLine;h.initialDate=c.coordinateToDate(d);h.finalDate=
|
58
|
+
c.coordinateToDate(e);h.initialValue=b.coordinateToValue(g);h.finalValue=b.coordinateToValue(a);h.lineAlpha=this.trendLineAlpha;h.lineColor=this.trendLineColor;h.lineThickness=this.trendLineThickness;h.dashLength=this.trendLineDashLength;h.valueAxis=b;h.categoryAxis=c;this.addTrendLine(h);this.listenTo(h,"click",this.handleTrendClick);this.validateNow()},hideDrawingIcons:function(a){(this.hideIcons=a)&&this.disableDrawing(a)},handleTrendClick:function(a){this.erasingEnabled&&(a=a.trendLine,this.eraseAll||
|
59
|
+
a.isProtected||this.removeTrendLine(a),this.validateNow())}});AmCharts.CategoryAxesSettings=AmCharts.Class({construct:function(){this.minPeriod="DD";this.equalSpacing=!1;this.axisHeight=28;this.tickLength=this.axisAlpha=0;this.gridCount=10;this.maxSeries=150;this.groupToPeriods="ss 10ss 30ss mm 10mm 30mm hh DD WW MM YYYY".split(" ");this.autoGridCount=!0}});AmCharts.ChartCursorSettings=AmCharts.Class({construct:function(){this.enabled=!0;this.bulletsEnabled=this.valueBalloonsEnabled=!1;this.categoryBalloonDateFormats=[{period:"YYYY",format:"YYYY"},{period:"MM",format:"MMM, YYYY"},{period:"WW",format:"MMM DD, YYYY"},{period:"DD",format:"MMM DD, YYYY"},{period:"hh",format:"JJ:NN"},{period:"mm",format:"JJ:NN"},{period:"ss",format:"JJ:NN:SS"},{period:"fff",format:"JJ:NN:SS"}]},categoryBalloonDateFormat:function(a){var b=this.categoryBalloonDateFormats,c,
|
56
60
|
d;for(d=0;d<b.length;d++)b[d].period==a&&(c=b[d].format);return c}});AmCharts.ChartScrollbarSettings=AmCharts.Class({construct:function(){this.height=40;this.enabled=!0;this.color="#FFFFFF";this.updateOnReleaseOnly=this.autoGridCount=!0;this.hideResizeGrips=!1;this.position="bottom"}});AmCharts.LegendSettings=AmCharts.Class({construct:function(){this.marginBottom=this.marginTop=0;this.usePositiveNegativeOnPercentsOnly=!0;this.positiveValueColor="#00CC00";this.negativeValueColor="#CC0000";this.autoMargins=this.equalWidths=this.textClickEnabled=!1}});AmCharts.PanelsSettings=AmCharts.Class({construct:function(){this.marginBottom=this.marginTop=this.marginRight=this.marginLeft=0;this.backgroundColor="#FFFFFF";this.backgroundAlpha=0;this.panelSpacing=8;this.panEventsEnabled=!1}});AmCharts.StockEventsSettings=AmCharts.Class({construct:function(){this.type="sign";this.backgroundAlpha=1;this.backgroundColor="#DADADA";this.borderAlpha=1;this.borderColor="#888888";this.balloonColor=this.rollOverColor="#CC0000"}});AmCharts.ValueAxesSettings=AmCharts.Class({construct:function(){this.tickLength=0;this.showFirstLabel=this.autoGridCount=this.inside=!0;this.showLastLabel=!1;this.axisAlpha=0}});AmCharts.getItemIndex=function(a,b){var c=-1,d;for(d=0;d<b.length;d++)a==b[d]&&(c=d);return c};AmCharts.addBr=function(a){a.appendChild(document.createElement("br"))};
|
57
|
-
AmCharts.parseStockData=function(a,b,c,d,e){(new Date).getTime();var
|
58
|
-
|
59
|
-
q,
|
60
|
-
"High"]=q),
|
61
|
-
AmCharts.parseEvents=function(a,b,c,d,e,
|
62
|
-
|
63
|
-
AmCharts.stringToDate(
|
64
|
-
isNaN(q.borderAlpha)?
|
65
|
-
|
61
|
+
AmCharts.parseStockData=function(a,b,c,d,e){(new Date).getTime();var g={},h=a.dataProvider,f=a.categoryField;if(f){var m=AmCharts.getItemIndex(b,c),k=c.length,u,y=h.length,r,x={};for(u=m;u<k;u++)r=c[u],g[r]=[];var s={},n=a.fieldMappings,w=n.length;for(u=0;u<y;u++){var p=h[u],l=p[f],l=l instanceof Date?"fff"==b?AmCharts.useUTC?new Date(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate(),l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()):new Date(l.getFullYear(),l.getMonth(),
|
62
|
+
l.getDate(),l.getHours(),l.getMinutes(),l.getSeconds(),l.getMilliseconds()):new Date(l):e?AmCharts.stringToDate(l,e):new Date(l),D=l.getTime(),A={};for(r=0;r<w;r++)A[n[r].toField]=p[n[r].fromField];var z;for(z=m;z<k;z++){r=c[z];var B=AmCharts.extractPeriod(r),C=B.period,B=B.count,v,t,q;if(z==m||D>=x[r]||!x[r]){s[r]={};s[r].amCategoryIdField=String(AmCharts.resetDateToMin(l,C,B,d).getTime());var E;for(E=0;E<w;E++)v=n[E].toField,t=s[r],q=Number(A[v]),t[v+"Count"]=0,t[v+"Sum"]=0,isNaN(q)||(t[v+"Open"]=
|
63
|
+
q,t[v+"Sum"]=q,t[v+"High"]=q,t[v+"Low"]=q,t[v+"Close"]=q,t[v+"Count"]=1,t[v+"Average"]=q);g[r].push(s[r]);z>m&&(t=new Date(l),t=AmCharts.changeDate(t,C,B,!0),t=AmCharts.resetDateToMin(t,C,B,d),x[r]=t.getTime());if(z==m)for(var F in p)p.hasOwnProperty(F)&&(s[r][F]=p[F]);s[r][f]=new Date(l)}else for(C=0;C<w;C++)v=n[C].toField,t=s[r],u==y-1&&(t[f]=new Date(l)),q=Number(A[v]),isNaN(q)||(isNaN(t[v+"Low"])&&(t[v+"Low"]=q),q<t[v+"Low"]&&(t[v+"Low"]=q),isNaN(t[v+"High"])&&(t[v+"High"]=q),q>t[v+"High"]&&(t[v+
|
64
|
+
"High"]=q),t[v+"Close"]=q,t[v+"Sum"]+=q,t[v+"Count"]++,t[v+"Average"]=t[v+"Sum"]/t[v+"Count"])}}}a.agregatedDataProviders=g};
|
65
|
+
AmCharts.parseEvents=function(a,b,c,d,e,g){var h=a.stockEvents,f=a.agregatedDataProviders,m=b.length,k,u,y,r,x,s,n,w;for(k=0;k<m;k++){s=b[k];x=s.graphs;y=x.length;var p;for(u=0;u<y;u++)r=x[u],r.customBulletField="amCustomBullet"+r.id+"_"+s.id,r.bulletConfigField="amCustomBulletConfig"+r.id+"_"+s.id;for(var l=0;l<h.length;l++)if(n=h[l],p=n.graph,AmCharts.isString(p)&&(p=AmCharts.getObjById(x,p)))n.graph=p}for(var D in f)if(f.hasOwnProperty(D)){p=f[D];var A=AmCharts.extractPeriod(D),z=p.length,B;for(B=
|
66
|
+
0;B<z;B++){var C=p[B];k=C[a.categoryField];w=k instanceof Date;g&&!w&&(k=AmCharts.stringToDate(k,g));var v=k.getTime();x=A.period;var l=A.count,t;t="fff"==x?k.getTime()+1:AmCharts.resetDateToMin(AmCharts.changeDate(new Date(k),A.period,A.count),x,l,d).getTime();for(k=0;k<m;k++)for(s=b[k],x=s.graphs,y=x.length,u=0;u<y;u++){r=x[u];var q={};q.eventDispatcher=e;q.eventObjects=[];q.letters=[];q.descriptions=[];q.shapes=[];q.backgroundColors=[];q.backgroundAlphas=[];q.borderColors=[];q.borderAlphas=[];
|
67
|
+
q.colors=[];q.rollOverColors=[];q.showOnAxis=[];for(l=0;l<h.length;l++){n=h[l];w=n.date instanceof Date;g&&!w&&(n.date=AmCharts.stringToDate(n.date,g));w=n.date.getTime();var E=!1;n.graph&&(n.graph.showEventsOnComparedGraphs&&n.graph.comparedGraphs[a.id]&&(E=!0),(r==n.graph||E)&&w>=v&&w<t&&(q.eventObjects.push(n),q.letters.push(n.text),q.descriptions.push(n.description),n.type?q.shapes.push(n.type):q.shapes.push(c.type),void 0!==n.backgroundColor?q.backgroundColors.push(n.backgroundColor):q.backgroundColors.push(c.backgroundColor),
|
68
|
+
isNaN(n.backgroundAlpha)?q.backgroundAlphas.push(c.backgroundAlpha):q.backgroundAlphas.push(n.backgroundAlpha),isNaN(n.borderAlpha)?q.borderAlphas.push(c.borderAlpha):q.borderAlphas.push(n.borderAlpha),void 0!==n.borderColor?q.borderColors.push(n.borderColor):q.borderColors.push(c.borderColor),void 0!==n.rollOverColor?q.rollOverColors.push(n.rollOverColor):q.rollOverColors.push(c.rollOverColor),q.colors.push(n.color),!n.panel&&n.graph&&(n.panel=n.graph.chart),q.showOnAxis.push(n.showOnAxis),q.date=
|
69
|
+
new Date(n.date)));0<q.shapes.length&&(n="amCustomBullet"+r.id+"_"+s.id,w="amCustomBulletConfig"+r.id+"_"+s.id,C[n]=AmCharts.StackedBullet,C[w]=q)}}}}};AmCharts.StockLegend=AmCharts.Class({inherits:AmCharts.AmLegend,construct:function(){AmCharts.StockLegend.base.construct.call(this);this.valueTextComparing="[[percents.value]]%";this.valueTextRegular="[[value]]"},drawLegend:function(){var a=this;AmCharts.StockLegend.base.drawLegend.call(a);var b=a.chart;if(b.allowTurningOff){var c=a.container,d=c.image(b.pathToImages+"xIcon.gif",b.realWidth-17,3,17,17),b=c.image(b.pathToImages+"xIconH.gif",b.realWidth-17,3,17,17);b.hide();a.xButtonHover=b;d.mouseup(function(){a.handleXClick()}).mouseover(function(){a.handleXOver()});
|
66
70
|
b.mouseup(function(){a.handleXClick()}).mouseout(function(){a.handleXOut()})}},handleXOver:function(){this.xButtonHover.show()},handleXOut:function(){this.xButtonHover.hide()},handleXClick:function(){var a=this.chart,b=a.stockChart;b.removePanel(a);b.validateNow()}});AmCharts.DataSetSelector=AmCharts.Class({construct:function(){this.createEvents("dataSetSelected","dataSetCompared","dataSetUncompared");this.position="left";this.selectText="Select:";this.comboBoxSelectText="Select...";this.compareText="Compare to:";this.width=180;this.dataProvider=[];this.listHeight=150;this.listCheckBoxSize=14;this.rollOverBackgroundColor="#b2e1ff";this.selectedBackgroundColor="#7fceff"},write:function(a){var b=this,c;a.className="amChartsDataSetSelector";b.div=a;a.innerHTML="";
|
67
|
-
var d=b.position,e;e="top"==d||"bottom"==d?!1:!0;b.vertical=e;var
|
68
|
-
0;c<d.length;c++)if(h=d[c],!0===h.showInSelect){
|
69
|
-
|
70
|
-
|
71
|
-
function(a){b.handleCBSelect.call(b,a)},!0);AmCharts.isIE&&e.attachEvent("onchange",function(a){b.handleCBSelect.call(b,a)});
|
71
|
+
var d=b.position,e;e="top"==d||"bottom"==d?!1:!0;b.vertical=e;var g;e&&(g=b.width+"px");var d=b.dataProvider,h,f;if(1<b.countDataSets("showInSelect")){c=document.createTextNode(b.selectText);a.appendChild(c);e&&AmCharts.addBr(a);var m=document.createElement("select");g&&(m.style.width=g);b.selectCB=m;a.appendChild(m);AmCharts.isNN&&m.addEventListener("change",function(a){b.handleDataSetChange.call(b,a)},!0);AmCharts.isIE&&m.attachEvent("onchange",function(a){b.handleDataSetChange.call(b,a)});for(c=
|
72
|
+
0;c<d.length;c++)if(h=d[c],!0===h.showInSelect){f=document.createElement("option");f.text=h.title;f.value=c;h==b.chart.mainDataSet&&(f.selected=!0);try{m.add(f,null)}catch(k){m.add(f)}}b.offsetHeight=m.offsetHeight}if(0<b.countDataSets("showInCompare")&&1<d.length)if(e?(AmCharts.addBr(a),AmCharts.addBr(a)):(c=document.createTextNode(" "),a.appendChild(c)),c=document.createTextNode(b.compareText),a.appendChild(c),f=b.listCheckBoxSize,e){AmCharts.addBr(a);g=document.createElement("div");a.appendChild(g);
|
73
|
+
g.className="amChartsCompareList";g.style.overflow="auto";g.style.overflowX="hidden";g.style.width=b.width-2+"px";g.style.maxHeight=b.listHeight+"px";for(c=0;c<d.length;c++)h=d[c],!0===h.showInCompare&&h!=b.chart.mainDataSet&&(e=document.createElement("div"),e.style.padding="4px",e.style.position="relative",e.name="amCBContainer",e.dataSet=h,e.style.height=f+"px",h.compared&&(e.style.backgroundColor=b.selectedBackgroundColor),g.appendChild(e),m=document.createElement("div"),m.style.width=f+"px",m.style.height=
|
74
|
+
f+"px",m.style.position="absolute",m.style.backgroundColor=h.color,e.appendChild(m),m=document.createElement("div"),m.style.width="100%",m.style.position="absolute",m.style.left=f+10+"px",e.appendChild(m),h=document.createTextNode(h.title),m.style.whiteSpace="nowrap",m.style.cursor="default",m.appendChild(h),b.addEventListeners(e));AmCharts.addBr(a);AmCharts.addBr(a)}else{e=document.createElement("select");b.compareCB=e;g&&(e.style.width=g);a.appendChild(e);AmCharts.isNN&&e.addEventListener("change",
|
75
|
+
function(a){b.handleCBSelect.call(b,a)},!0);AmCharts.isIE&&e.attachEvent("onchange",function(a){b.handleCBSelect.call(b,a)});f=document.createElement("option");f.text=b.comboBoxSelectText;try{e.add(f,null)}catch(u){e.add(f)}for(c=0;c<d.length;c++)if(h=d[c],!0===h.showInCompare&&h!=b.chart.mainDataSet){f=document.createElement("option");f.text=h.title;f.value=c;h.compared&&(f.selected=!0);try{e.add(f,null)}catch(y){e.add(f)}}b.offsetHeight=e.offsetHeight}},addEventListeners:function(a){var b=this;
|
72
76
|
AmCharts.isNN&&(a.addEventListener("mouseover",function(a){b.handleRollOver.call(b,a)},!0),a.addEventListener("mouseout",function(a){b.handleRollOut.call(b,a)},!0),a.addEventListener("click",function(a){b.handleClick.call(b,a)},!0));AmCharts.isIE&&(a.attachEvent("onmouseout",function(a){b.handleRollOut.call(b,a)}),a.attachEvent("onmouseover",function(a){b.handleRollOver.call(b,a)}),a.attachEvent("onclick",function(a){b.handleClick.call(b,a)}))},handleDataSetChange:function(){var a=this.selectCB,a=
|
73
77
|
this.dataProvider[a.options[a.selectedIndex].value],b=this.chart;b.mainDataSet=a;b.zoomOutOnDataSetChange&&(b.startDate=void 0,b.endDate=void 0);b.validateData();a={type:"dataSetSelected",dataSet:a,chart:this.chart};this.fire(a.type,a)},handleRollOver:function(a){a=this.getRealDiv(a);a.dataSet.compared||(a.style.backgroundColor=this.rollOverBackgroundColor)},handleRollOut:function(a){a=this.getRealDiv(a);a.dataSet.compared||(a.style.removeProperty&&a.style.removeProperty("background-color"),a.style.removeAttribute&&
|
74
78
|
a.style.removeAttribute("backgroundColor"))},handleCBSelect:function(a){var b=this.compareCB,c=this.dataProvider,d,e;for(d=0;d<c.length;d++)e=c[d],e.compared&&(a={type:"dataSetUncompared",dataSet:e}),e.compared=!1;c=b.selectedIndex;0<c&&(e=this.dataProvider[b.options[c].value],e.compared||(a={type:"dataSetCompared",dataSet:e}),e.compared=!0);b=this.chart;b.validateData();a.chart=b;this.fire(a.type,a)},handleClick:function(a){a=this.getRealDiv(a).dataSet;!0===a.compared?(a.compared=!1,a={type:"dataSetUncompared",
|
75
79
|
dataSet:a}):(a.compared=!0,a={type:"dataSetCompared",dataSet:a});var b=this.chart;b.validateData();a.chart=b;this.fire(a.type,a)},getRealDiv:function(a){a||(a=window.event);a=a.currentTarget?a.currentTarget:a.srcElement;"amCBContainer"==a.parentNode.name&&(a=a.parentNode);return a},countDataSets:function(a){var b=this.dataProvider,c=0,d;for(d=0;d<b.length;d++)!0===b[d][a]&&c++;return c}});AmCharts.StackedBullet=AmCharts.Class({construct:function(){this.fontSize=11;this.stackDown=!1;this.mastHeight=8;this.shapes=[];this.backgroundColors=[];this.backgroundAlphas=[];this.borderAlphas=[];this.borderColors=[];this.colors=[];this.rollOverColors=[];this.showOnAxiss=[];this.textColor="#000000";this.nextY=0;this.size=16},parseConfig:function(){var a=this.bulletConfig;this.eventObjects=a.eventObjects;this.letters=a.letters;this.shapes=a.shapes;this.backgroundColors=a.backgroundColors;this.backgroundAlphas=
|
76
80
|
a.backgroundAlphas;this.borderColors=a.borderColors;this.borderAlphas=a.borderAlphas;this.colors=a.colors;this.rollOverColors=a.rollOverColors;this.date=a.date;this.showOnAxiss=a.showOnAxis;this.axisCoordinate=a.minCoord},write:function(a){this.parseConfig();this.container=a;this.bullets=[];if(this.graph){var b=this.graph.fontSize;b&&(this.fontSize=b)}b=this.letters.length;(this.mastHeight+2*(this.fontSize/2+2))*b>this.availableSpace&&(this.stackDown=!0);this.set=a.set();a=0;var c;for(c=0;c<b;c++)this.shape=
|
77
|
-
this.shapes[c],this.backgroundColor=this.backgroundColors[c],this.backgroundAlpha=this.backgroundAlphas[c],this.borderAlpha=this.borderAlphas[c],this.borderColor=this.borderColors[c],this.rollOverColor=this.rollOverColors[c],this.showOnAxis=this.showOnAxiss[c],this.color=this.colors[c],this.addLetter(this.letters[c],a,c),this.showOnAxis||a++},addLetter:function(a,b,c){var d=this.container;b=d.set();var e=-1,
|
78
|
-
(e=1);var h=0,
|
79
|
-
h=-
|
80
|
-
this.axisCoordinate:this.nextY,
|
81
|
-
[0,c/2,c/2,-c/2,-c/2,0],[0,b*c/4,b*(c+c/4),b*(c+c/4),b*c/4,0])},drawSign:function(a){var b=-1;this.stackDown&&(b=1);var c=this.mastHeight*b,d=this.fontSize/2+2,e=AmCharts.line(this.container,[0,0],[0,c],this.borderColor,this.borderAlpha,1),
|
81
|
+
this.shapes[c],this.backgroundColor=this.backgroundColors[c],this.backgroundAlpha=this.backgroundAlphas[c],this.borderAlpha=this.borderAlphas[c],this.borderColor=this.borderColors[c],this.rollOverColor=this.rollOverColors[c],this.showOnAxis=this.showOnAxiss[c],this.color=this.colors[c],this.addLetter(this.letters[c],a,c),this.showOnAxis||a++},addLetter:function(a,b,c){var d=this.container;b=d.set();var e=-1,g=this.stackDown;this.showOnAxis&&(this.stackDown=this.graph.valueAxis.reversed?!0:!1);this.stackDown&&
|
82
|
+
(e=1);var h=0,f=0,m=0,k,m=this.fontSize,u=this.mastHeight,y=this.shape,r=this.textColor;void 0!==this.color&&(r=this.color);void 0===a&&(a="");a=AmCharts.text(d,a,r,this.chart.fontFamily,this.fontSize);d=a.getBBox();this.labelWidth=r=d.width;this.labelHeight=d.height;d=0;switch(y){case "sign":k=this.drawSign(b);h=u+4+m/2;d=u+m+4;1==e&&(h-=4);break;case "flag":k=this.drawFlag(b);f=r/2+3;h=u+4+m/2;d=u+m+4;1==e&&(h-=4);break;case "pin":k=this.drawPin(b);h=6+m/2;d=m+8;break;case "triangleUp":k=this.drawTriangleUp(b);
|
83
|
+
h=-m-1;d=m+4;e=-1;break;case "triangleDown":k=this.drawTriangleDown(b);h=m+1;d=m+4;e=-1;break;case "triangleLeft":k=this.drawTriangleLeft(b);f=m;d=m+4;e=-1;break;case "triangleRight":k=this.drawTriangleRight(b);f=-m;e=-1;d=m+4;break;case "arrowUp":k=this.drawArrowUp(b);a.hide();break;case "arrowDown":k=this.drawArrowDown(b);a.hide();d=m+4;break;case "text":e=-1;k=this.drawTextBackground(b,a);h=this.labelHeight+3;d=m+10;break;case "round":k=this.drawCircle(b)}this.bullets[c]=k;this.showOnAxis?(k=isNaN(this.nextAxisY)?
|
84
|
+
this.axisCoordinate:this.nextY,m=h*e,this.nextAxisY=k+e*d):(k=this.nextY,m=h*e);a.translate(f,m);b.push(a);b.translate(0,k);this.addEventListeners(b,c);this.nextY=k+e*d;this.stackDown=g},addEventListeners:function(a,b){var c=this;a.click(function(){c.handleClick(b)}).mouseover(function(){c.handleMouseOver(b)}).touchend(function(){c.handleMouseOver(b,!0)}).mouseout(function(){c.handleMouseOut(b)})},drawPin:function(a){var b=-1;this.stackDown&&(b=1);var c=this.fontSize+4;return this.drawRealPolygon(a,
|
85
|
+
[0,c/2,c/2,-c/2,-c/2,0],[0,b*c/4,b*(c+c/4),b*(c+c/4),b*c/4,0])},drawSign:function(a){var b=-1;this.stackDown&&(b=1);var c=this.mastHeight*b,d=this.fontSize/2+2,e=AmCharts.line(this.container,[0,0],[0,c],this.borderColor,this.borderAlpha,1),g=AmCharts.circle(this.container,d,this.backgroundColor,this.backgroundAlpha,1,this.borderColor,this.borderAlpha);g.translate(0,c+d*b);a.push(e);a.push(g);this.set.push(a);return g},drawFlag:function(a){var b=-1;this.stackDown&&(b=1);var c=this.fontSize+4,d=this.labelWidth+
|
82
86
|
6,e=this.mastHeight,b=1==b?b*e:b*e-c,e=AmCharts.line(this.container,[0,0],[0,b],this.borderColor,this.borderAlpha,1),c=AmCharts.polygon(this.container,[0,d,d,0],[0,0,c,c],this.backgroundColor,this.backgroundAlpha,1,this.borderColor,this.borderAlpha);c.translate(0,b);a.push(e);a.push(c);this.set.push(a);return c},drawTriangleUp:function(a){var b=this.fontSize+7;return this.drawRealPolygon(a,[0,b/2,-b/2,0],[0,b,b,0])},drawArrowUp:function(a){var b=this.size,c=b/2,d=b/4;return this.drawRealPolygon(a,
|
83
87
|
[0,c,d,d,-d,-d,-c,0],[0,c,c,b,b,c,c,0])},drawArrowDown:function(a){var b=this.size,c=b/2,d=b/4;return this.drawRealPolygon(a,[0,c,d,d,-d,-d,-c,0],[0,-c,-c,-b,-b,-c,-c,0])},drawTriangleDown:function(a){var b=this.fontSize+7;return this.drawRealPolygon(a,[0,b/2,-b/2,0],[0,-b,-b,0])},drawTriangleLeft:function(a){var b=this.fontSize+7;return this.drawRealPolygon(a,[0,b,b,0],[0,-b/2,b/2])},drawTriangleRight:function(a){var b=this.fontSize+7;return this.drawRealPolygon(a,[0,-b,-b,0],[0,-b/2,b/2,0])},drawRealPolygon:function(a,
|
84
88
|
b,c){b=AmCharts.polygon(this.container,b,c,this.backgroundColor,this.backgroundAlpha,1,this.borderColor,this.borderAlpha);a.push(b);this.set.push(a);return b},drawCircle:function(a){shape=AmCharts.circle(this.container,this.fontSize/2,this.backgroundColor,this.backgroundAlpha,1,this.borderColor,this.borderAlpha);a.push(shape);this.set.push(a);return shape},drawTextBackground:function(a,b){var c=b.getBBox(),d=-c.width/2-5,e=c.width/2+5,c=-c.height-12;return this.drawRealPolygon(a,[d,-5,0,5,e,e,d,d],
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amcharts.rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.0.
|
4
|
+
version: 3.2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Vandersluis
|
@@ -105,6 +105,7 @@ files:
|
|
105
105
|
- lib/amcharts/chart/xy.rb
|
106
106
|
- lib/amcharts/chart_builder.rb
|
107
107
|
- lib/amcharts/chart_builder/function.rb
|
108
|
+
- lib/amcharts/chart_builder/literal.rb
|
108
109
|
- lib/amcharts/cursor.rb
|
109
110
|
- lib/amcharts/graph.rb
|
110
111
|
- lib/amcharts/legend.rb
|
@@ -114,6 +115,8 @@ files:
|
|
114
115
|
- lib/amcharts/uses_settings.rb
|
115
116
|
- lib/amcharts/version.rb
|
116
117
|
- spec/chart/serial_spec.rb
|
118
|
+
- spec/chart_builder/function_spec.rb
|
119
|
+
- spec/chart_builder/literal_spec.rb
|
117
120
|
- spec/chart_spec.rb
|
118
121
|
- vendor/assets/images/amcharts/dragIcon.gif
|
119
122
|
- vendor/assets/images/amcharts/dragIconH.gif
|
@@ -218,5 +221,7 @@ specification_version: 4
|
|
218
221
|
summary: Wrapper for Amcharts 3 Javascript charts
|
219
222
|
test_files:
|
220
223
|
- spec/chart/serial_spec.rb
|
224
|
+
- spec/chart_builder/function_spec.rb
|
225
|
+
- spec/chart_builder/literal_spec.rb
|
221
226
|
- spec/chart_spec.rb
|
222
227
|
has_rdoc:
|