amcharts

amcharts4 is not compiling with angular 6

﹥>﹥吖頭↗ 提交于 2021-01-27 05:34:11
问题 I'm having trouble with compiling my app when including amcharts4. I have simply installed the amcharts4 npm package and am trying to use it in a component i've created. Am i missing something with the CLI config? ERROR in node_modules/@amcharts/amcharts4/.internal/core/utils/Object.d.ts(60,117): error TS2536: Type 'Key' cannot be used to index type 'Object'. node_modules/@amcharts/amcharts4/.internal/core/utils/Object.d.ts(67,109): error TS2536: Type 'Key' cannot be used to index type

AmCharts4: Exporting menu doesn't provide options for CSV, XLSX and JSON

£可爱£侵袭症+ 提交于 2020-08-10 20:16:26
问题 I'm using AmCharts4 and I want to export chart data in CSV, XLSX and JSON format. I'm including the following scripts in index.html: <script src="https://www.amcharts.com/lib/4/core.js"></script> <script src="https://www.amcharts.com/lib/4/charts.js"></script> in .ts file: ... import * as am4core from "@amcharts/amcharts4/core"; ... let chart4 = am4core.create("chartdiv4", am4charts.XYChart); chart4.exporting.menu = new am4core.ExportMenu(); and I'm not getting all the options for data export

How to Highlight a single bar on click in amcharts v4

纵饮孤独 提交于 2020-06-16 04:56:18
问题 I have a column chart from amcharts. I need to highlight a single bar on click on bar. Current scenario is when I click multiple bar, all bars highlighted. enter image description here var highState = series.columns.template.states.create("highlight"); highState.properties.fill = am4core.color("#8c8c8c"); var highState = series.columns.template.states.create("default"); highState.properties.fill = am4core.color("#333333"); var activeState = series.columns.template.states.create("active");

AMCharts Maps v4 - Is there a way to have more than two colors in a heatLegend?

北战南征 提交于 2020-06-14 07:13:30
问题 Was thinking that it would be nice to be able to set a range of colors for a heatmap instead of just two (min and max). Like what we do for the gradient list. Something like... function am4themes_myHeatmap(target) { if (target instanceof am4core.ColorSet) { target.list = [ am4core.color("#F7E3D4"), am4core.color("#FFC480"), am4core.color("#DC60BF"), am4core.color("#A43B7D"), am4core.color("#5B0A25") ]; } } See example from mockup If something like this already exists, I would the love to see