Skip to content
This repository was archived by the owner on May 3, 2023. It is now read-only.
This repository was archived by the owner on May 3, 2023. It is now read-only.

Area chart linear gradient not works #40

@ymdm5

Description

@ymdm5

Which platform(s) does your issue occur on?

  • Android
  • emulator

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 outer this as 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.

chart.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions