Highchart.wrap usage in jasper report

I would like to have this implemented in jasper report

https://stackoverflow.com/questions/42259571/conditional-highcharts-marker-symbol-using-javascript

That means execute somewhere this portion of script

const H = Highcharts;
 
H.wrap(H.Series.prototype, 'drawPoints', function(p) {
  const options = this.options;
  const symbolCallback = options.marker && options.marker.symbolCallback;
  const points = this.points;
 
  if (symbolCallback && points.length) {
    points.forEach(point => {
      const symbol = symbolCallback.call(point);
      if (symbol) {
        point.update({
          marker: {
            symbol: symbol
          }
        }, false)
      }
    })
  }
 
  p.call(this);
})

I'm not sure how to run Highchart.warp method from post inside report definition.

Anyone could help here?

Thx

msiljegovic@gmail.com's picture
Joined: Dec 15 2015 - 12:53pm
Last seen: 4 months 3 weeks ago

0 Answers:

No answers yet
Feedback
randomness