Giter Club home page Giter Club logo

Comments (5)

TorsteinHonsi avatar TorsteinHonsi commented on June 26, 2024

In http://export.highcharts.com/, you would put the custom code in the "JavaScript" textarea at the bottom. The callback options runs too late.

@cvasseng What server argument does this translate to?

from node-export-server.

cvasseng avatar cvasseng commented on June 26, 2024

The customCode body argument runs prior to initializing the chart, so that would be a good bet.

from node-export-server.

kryft avatar kryft commented on June 26, 2024

The description for customCode says

When dataOptions is supplied, this is a function to be called with the after applying the data options. Its only argument is the complete options object which will be passed to the Highcharts constructor on return.

I don't really understand what dataOptions does (I couldn't find API documentation on Highcharts.data()), but it sounds like the customCode callback might not get called if dataOptions hasn't been supplied.

According to the description, the customCode callback would get the options object as an argument. How would it get access to the Highcharts(/Highstock) object itself?

from node-export-server.

jb3-2 avatar jb3-2 commented on June 26, 2024

Hi, if it's of any help, in my node code I add a function that accesses the Highcharts object before rendering the chart. That works for me. See here (line 89): https://github.com/statabs-test/indikatoren/blob/434316b638cbb253f733d2192808305bb80b5d58/build/exportChartImages.js#L89

from node-export-server.

PaulDalek avatar PaulDalek commented on June 26, 2024

Closed by the #338.

from node-export-server.

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.