Git Product home page Git Product logo

Comments (6)

ValeriiMalkov avatar ValeriiMalkov commented on June 11, 2024

@cebor Please tell me how to fix this as soon as possible. It's a big problem for my project

from angular-highcharts.

cebor avatar cebor commented on June 11, 2024

Hi @ValeriiMalkov, just subscribe to the ref$. Then you should get back the highcharts ref as a value.

https://angular.io/guide/observables#subscribing

from angular-highcharts.

ValeriiMalkov avatar ValeriiMalkov commented on June 11, 2024

Hi @cebor ! Thanks for responding!
I've subscribed but getSVG() still not exist

this.chart = new StockChart({
      chart: {
        type: 'line',
        events: {
          load() {
            console.log(this)
          }
        }
      },
      title: {
        text: 'Linechart'
      },
      credits: {
        enabled: false
      },
      exporting: {
        enabled: true,
        allowHTML: true,
        
      },
  
      rangeSelector: {enabled: false},
      series: [
        {
          type:undefined,
          name: 'Line 1',
          data: [1, 2, 3]
        }
      ]
    });
    const myObserver = {
      next: (x: number) => console.log('Observer got a next value: ' + x),
      error: (err: Error) => console.error('Observer got an error: ' + err),
      complete: () => console.log('Observer got a complete notification'),
    };
    this.chart.ref$.subscribe((d) => {
      console.log(d) 
    })

from angular-highcharts.

cebor avatar cebor commented on June 11, 2024

Ok, it seems that the export module is not properly loaded. Do you see the menu to export a chart in the gui? Maybe you have to do it manually, atm integrated module loading is only supported for normal Highcharts.

from angular-highcharts.

ValeriiMalkov avatar ValeriiMalkov commented on June 11, 2024

Ok, it seems that the export module is not properly loaded. Do you see the menu to export a chart in the gui? Maybe you have to do it manually, atm integrated module loading is only supported for normal Highcharts.

@cebor
No, i dont see menu to export. I see menu export if i create Chart instance instead of StockChart. In the Chart instance the group methods for export are exist what i cant say about StockChart.

What could be the solution for me? I need to export multiple stockcharts into pdf document

from angular-highcharts.

cebor avatar cebor commented on June 11, 2024

Should be fixed in the latest version.

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.