Giter VIP home page Giter VIP logo

Comments (11)

Janatbek avatar Janatbek commented on June 12, 2024 1

LIke this:?

import highchartsMore from 'highcharts/highcharts-more.src.js';

export function highchartsModules() {
  // apply Highcharts Modules to this array
  return [ exporting, heatmap, treemap, highchartsMore ];
}

and I will have highcharts-more available for me?

from angular-highcharts.

cebor avatar cebor commented on June 12, 2024

See: https://github.com/cebor/angular-highcharts/releases/tag/v4.0.0

from angular-highcharts.

Janatbek avatar Janatbek commented on June 12, 2024

@cebor I was able to import modules as you explained in the link.
Treemap works with imports of heatmap and treemap from highcharts/modules.

But, how can I import highcharts-more from "highcharts/highcharts-more.src.js" to use it with boxplots and scatterplots?
Typescript throws an error:

[ts] Cannot find name more

[ts] ';' expected.
[ts] Cannot find name 'from'.

from angular-highcharts.

cebor avatar cebor commented on June 12, 2024

@Janatbek please show me more of your code, can't reproduce the error.

from angular-highcharts.

Janatbek avatar Janatbek commented on June 12, 2024

Can I create a repository and show you what I am trying to do?

from angular-highcharts.

Janatbek avatar Janatbek commented on June 12, 2024

I need to import highcharts-more in order to render boxplot, and highcharts-more has hyphen that typescript complains about it,
when I hover over the red underline it says

[ts] Cannot find name more

[ts] ';' expected.
[ts] Cannot find name 'from'.

The error:
capture1

Te code:
capture

from angular-highcharts.

cebor avatar cebor commented on June 12, 2024

@Janatbek check the - in your variable name 😃

from angular-highcharts.

Janatbek avatar Janatbek commented on June 12, 2024

I know, so How do I import variable name with hyphen sign?

from angular-highcharts.

cebor avatar cebor commented on June 12, 2024

nope, just rename it

from angular-highcharts.

cebor avatar cebor commented on June 12, 2024

yes, thats it

from angular-highcharts.

Janatbek avatar Janatbek commented on June 12, 2024

Thank you. It worked.

from angular-highcharts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.