|
|
@ -69,7 +69,7 @@ function chartModel(id,name,renderer,datasources) |
|
|
|
//first empty marks:
|
|
|
|
//first empty marks:
|
|
|
|
for(var k=0;k< this.options["marks"].length;k++) |
|
|
|
for(var k=0;k< this.options["marks"].length;k++) |
|
|
|
{ |
|
|
|
{ |
|
|
|
delete this.options["marks"][k]; |
|
|
|
this.options["marks"][k].pop(); |
|
|
|
} |
|
|
|
} |
|
|
|
//copy ChartElements to marks:
|
|
|
|
//copy ChartElements to marks:
|
|
|
|
for(var k=0;k< this.chartElements.length;k++) |
|
|
|
for(var k=0;k< this.chartElements.length;k++) |
|
|
@ -561,7 +561,6 @@ function removeChartElementConfig() |
|
|
|
|
|
|
|
|
|
|
|
/*var filtered=myChartModel.chartElements.filter(obj => obj.nr !== propertyCounter-1); |
|
|
|
/*var filtered=myChartModel.chartElements.filter(obj => obj.nr !== propertyCounter-1); |
|
|
|
myChartModel.chartElements=filtered;*/ |
|
|
|
myChartModel.chartElements=filtered;*/ |
|
|
|
//delete myChartModel.chartElements[propertyCounter-1];
|
|
|
|
|
|
|
|
myChartModel.chartElements.pop(); |
|
|
|
myChartModel.chartElements.pop(); |
|
|
|
elemID--; |
|
|
|
elemID--; |
|
|
|
if(document.getElementById("chartElementID")) |
|
|
|
if(document.getElementById("chartElementID")) |
|
|
@ -1400,15 +1399,18 @@ switch (chartType) |
|
|
|
case "bar_x": |
|
|
|
case "bar_x": |
|
|
|
plotMark=Plot.barX(myDatasourceRs,markOptions); |
|
|
|
plotMark=Plot.barX(myDatasourceRs,markOptions); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "bar_x_stacked": |
|
|
|
/* case "bar_x_stacked": |
|
|
|
plotMark=Plot.barX(myDatasourceRs,markOptions); |
|
|
|
plotMark=Plot.barX(myDatasourceRs,markOptions); |
|
|
|
break; |
|
|
|
break;*/ |
|
|
|
case "bar_x_alt": |
|
|
|
case "bar_x_alt": |
|
|
|
makeBarX(svg,data); |
|
|
|
makeBarX(svg,data); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "bar_y": |
|
|
|
case "bar_y": |
|
|
|
plotMark=Plot.barY(myDatasourceRs,markOptions); |
|
|
|
plotMark=Plot.barY(myDatasourceRs,markOptions); |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
case "area_x": |
|
|
|
|
|
|
|
plotMark=Plot.areaX(myDatasourceRs,markOptions); |
|
|
|
|
|
|
|
break; |
|
|
|
case "area_y": |
|
|
|
case "area_y": |
|
|
|
plotMark=Plot.areaY(myDatasourceRs,markOptions); |
|
|
|
plotMark=Plot.areaY(myDatasourceRs,markOptions); |
|
|
|
break; |
|
|
|
break; |
|
|
@ -1418,8 +1420,17 @@ switch (chartType) |
|
|
|
case "line": |
|
|
|
case "line": |
|
|
|
plotMark=Plot.line(myDatasourceRs,markOptions); |
|
|
|
plotMark=Plot.line(myDatasourceRs,markOptions); |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
case "box_x": |
|
|
|
|
|
|
|
plotMark=Plot.boxX(myDatasourceRs,markOptions); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case "box_y": |
|
|
|
|
|
|
|
plotMark=Plot.boxY(myDatasourceRs,markOptions); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case "text": |
|
|
|
|
|
|
|
plotMark=Plot.text(myDatasourceRs,markOptions); |
|
|
|
|
|
|
|
break; |
|
|
|
default: |
|
|
|
default: |
|
|
|
alert("Please select a chart type"); |
|
|
|
alert("Unknown chart type"); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|