Commit c798776d authored by Tania Gómez's avatar Tania Gómez

zoom on barcharts

parent 6c2f49de
...@@ -72,10 +72,12 @@ am4core.ready(function() { ...@@ -72,10 +72,12 @@ am4core.ready(function() {
valueAxis3.numberFormatter.numberFormat = "#.#"; valueAxis3.numberFormatter.numberFormat = "#.#";
valueAxis3.renderer.labels.template.fill = am4core.color("#b9ce37"); valueAxis3.renderer.labels.template.fill = am4core.color("#b9ce37");
valueAxis3.title.fill = am4core.color("#b9ce37"); valueAxis3.title.fill = am4core.color("#b9ce37");
valueAxis3.min = -300; //valueAxis3.min = -300;
valueAxis3.syncWithAxis = valueAxis1; valueAxis3.syncWithAxis = valueAxis1;
valueAxis3.fontSize = 15; valueAxis3.fontSize = 15;
valueAxis3.renderer.labels.template.fontSize = 15; valueAxis3.renderer.labels.template.fontSize = 15;
valueAxis3.min = valueAxis3.minZoomed;
valueAxis3.max = valueAxis3.maxZoomed;
valueAxis3.numberFormatter = new am4core.NumberFormatter(); valueAxis3.numberFormatter = new am4core.NumberFormatter();
valueAxis3.numberFormatter.numberFormat = "#,###"; valueAxis3.numberFormatter.numberFormat = "#,###";
...@@ -120,6 +122,7 @@ am4core.ready(function() { ...@@ -120,6 +122,7 @@ am4core.ready(function() {
series3.tooltip.getFillFromObject = false; series3.tooltip.getFillFromObject = false;
series3.tooltip.background.fill = am4core.color(mainTextColor); series3.tooltip.background.fill = am4core.color(mainTextColor);
//Add cursor //Add cursor
chart.cursor = new am4charts.XYCursor(); chart.cursor = new am4charts.XYCursor();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment