Please, provide the following version numbers that your issue occurs with:
CLI: 8.1.2
Cross-platform modules: 8.1.5
Runtime(s): Android 8.1.1
Plugin(s): 0.1.10
Please, tell us how to recreate the issue in as much detail as possible.
Describe the steps to reproduce it.
ns create charts
cd charts
ns plugin add @nativescript/ui-charts
I created chart component that include an area chart with options below:
chartOptions = { chart: { type: "area", }, title: { text: "", }, exporting: { enabled: false, }, yAxis: { title: { text: "", }, }, xAxis: { categories: ["2021.10", "2021.11", "2021.12", "2022.01", "2022.02"], }, legend: { enabled: false, }, credits: { enabled: false, }, plotOptions: { area: { fillColor: { linearGradient: [0, 0, 0, 300], stops: [ [0, "red"], [1, "yellow"], ], }, }, }, series: [ { name: "Installation", data: [10, 25, 13, 18, 21], }, ], };
Result:
JS: ERROR Error: java.lang.Exception: Failed resolving constructor for class 'com.highsoft.highcharts.common.HIGradient' with 4 parameters. Check the number and type of arguments. JS: Primitive types need to be manually wrapped in their respective Object wrappers. JS: If you are creating an instance of an inner class, make sure to always provide reference to the outerthisas the first argument.
Is there any code involved?
provide a code example to recreate the problem
(EVEN BETTER) provide a .zip with application or refer to a repository with application where the problem is reproducible.
Which platform(s) does your issue occur on?
Please, provide the following version numbers that your issue occurs with:
Please, tell us how to recreate the issue in as much detail as possible.
Describe the steps to reproduce it. ns create charts cd charts ns plugin add @nativescript/ui-charts I created chart component that include an area chart with options below:
chartOptions = { chart: { type: "area", }, title: { text: "", }, exporting: { enabled: false, }, yAxis: { title: { text: "", }, }, xAxis: { categories: ["2021.10", "2021.11", "2021.12", "2022.01", "2022.02"], }, legend: { enabled: false, }, credits: { enabled: false, }, plotOptions: { area: { fillColor: { linearGradient: [0, 0, 0, 300], stops: [ [0, "red"], [1, "yellow"], ], }, }, }, series: [ { name: "Installation", data: [10, 25, 13, 18, 21], }, ], };
Result:
JS: ERROR Error: java.lang.Exception: Failed resolving constructor for class 'com.highsoft.highcharts.common.HIGradient' with 4 parameters. Check the number and type of arguments. JS: Primitive types need to be manually wrapped in their respective Object wrappers. JS: If you are creating an instance of an inner class, make sure to always provide reference to the outer
thisas the first argument.
Is there any code involved?
chart.zip