Commit b2533c5a authored by Rodrigo Tapia-McClung's avatar Rodrigo Tapia-McClung

Update date on chart cursor and axes to show Q

parent c798776d
...@@ -38,9 +38,16 @@ am4core.ready(function() { ...@@ -38,9 +38,16 @@ am4core.ready(function() {
// Create axes // Create axes
let xAxis = chart.xAxes.push(new am4charts.DateAxis()); //chart.xAxes.push(new am4charts.DateAxis()); let xAxis = chart.xAxes.push(new am4charts.DateAxis()); //chart.xAxes.push(new am4charts.DateAxis());
xAxis.baseInterval = { timeUnit: "month", count: 1 }; xAxis.baseInterval = { timeUnit: "month", count: 3 };
xAxis.renderer.labels.template.fill = am4core.color(mainTextColor); xAxis.renderer.labels.template.fill = am4core.color(mainTextColor);
xAxis.renderer.labels.template.fontSize = 15; xAxis.renderer.labels.template.fontSize = 15;
xAxis.renderer.labels.template.location = 0.5;
xAxis.tooltipDateFormat = "q yyyy";
xAxis.adapter.add("getTooltipText", (text) => {
return "Q" + text;
});
xAxis.dateFormats.setKey("month", "Qq yyyy");
xAxis.periodChangeDateFormats.setKey("month", "Qq yyyy");
let valueAxis1 = chart.yAxes.push(new am4charts.ValueAxis()); let valueAxis1 = chart.yAxes.push(new am4charts.ValueAxis());
valueAxis1.title.text = "Área urbanizada (Ha)"; valueAxis1.title.text = "Área urbanizada (Ha)";
......
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