Search found 28 matches

Go to advanced search

by cpopolo
Fri May 26, 2023 3:56 pm
Forum: Highcharts Usage
Topic: Highcharts.Color error Class constructor G cannot be invoked without 'new'
Replies: 3
Views: 275
 
Jump to post

Re: Highcharts.Color error Class constructor G cannot be invoked without 'new'

Thanks Jakub, the explanation was very clear - and pretty much what I had expected. Charts aren't the primary focus of my application, so where would I read about version upgrades? I'm not sure I could even tell you which version I was using - I load the current version through a CDN in my apps, so ...
by cpopolo
Wed May 24, 2023 3:09 pm
Forum: Highcharts Usage
Topic: Highcharts.Color error Class constructor G cannot be invoked without 'new'
Replies: 3
Views: 275
 
Jump to post

Highcharts.Color error Class constructor G cannot be invoked without 'new'

The following snippet has always worked until recently: var colors = [], base = Highcharts.getOptions().colors[3], i; for (i = 0; i < 20; i += 1) { colors.push(Highcharts.Color(base).brighten((i - 3) / 17).get()); } console.log('hello',colors) Starting recently it now generates the error: Uncaught T...
by cpopolo
Fri Jul 24, 2020 4:09 pm
Forum: Highcharts Usage
Topic: How to count visible series in legendItemClick event
Replies: 3
Views: 2304
 
Jump to post

Re: How to count visible series in legendItemClick event

That's a promising solution, but I have a follow-up question. When the chart is first rendered, I want to set the visibility of certain legend items true/false (based on the user's sticky settings for visibility). How can I tell in the render event whether the chart is loading for the first time, or...
by cpopolo
Thu Jul 23, 2020 4:17 pm
Forum: Highcharts Usage
Topic: How to count visible series in legendItemClick event
Replies: 3
Views: 2304
 
Jump to post

How to count visible series in legendItemClick event

My goal is to save the current series visibility states of a chart so that I can remember the series states for the user when they return at a future time. My current code isn't correct because the legendItemClick event fires before the series visibility is toggled, causing an incorrect array of sho...
by cpopolo
Thu Mar 19, 2020 8:35 pm
Forum: Highcharts Usage
Topic: Recommendations for PDF integration
Replies: 2
Views: 3805
 
Jump to post

Re: Recommendations for PDF integration

Thanks Rafal... Knowing that it would be difficult is very helpful to know in advance... And that has great value. I will spend some additional time looking for more robust business solutions for the PDF portion which is more important, and then see what will be involved with integrating a few simpl...
by cpopolo
Wed Mar 18, 2020 8:46 pm
Forum: Highcharts Usage
Topic: Recommendations for PDF integration
Replies: 2
Views: 3805
 
Jump to post

Recommendations for PDF integration

Hi all, I'm asking in very general terms if anyone has a strong recommendation for a PDF output solution that can integrate Highcharts along with other data tables and server-side materials. As a simple example, imagine we would like to generate a standard report which might show 12 months of sales ...
by cpopolo
Wed Mar 04, 2020 5:22 pm
Forum: Highcharts Stock
Topic: New bug today with Highstock v 8.0.1 (02-March) this.init is not a function
Replies: 5
Views: 1173
 
Jump to post

Re: New bug today with Highstock v 8.0.1 (02-March) this.init is not a function

Thanks - I guess the changelog is worth reading once in a while!
by cpopolo
Tue Mar 03, 2020 5:41 pm
Forum: Highcharts Stock
Topic: New bug today with Highstock v 8.0.1 (02-March) this.init is not a function
Replies: 5
Views: 1173
 
Jump to post

Re: New bug today with Highstock v 8.0.1 (02-March) this.init is not a function

As I mentioned under a similar post in the Highcharts forum, clearing the cache has had no effect. I continue to see the error this.init(input) is not a function (on line 2839 of highstock.src.js, version 8.0.2 with date 03-March-2020). I also noticed that this version is new for today; it was 8.0.1...
by cpopolo
Mon Mar 02, 2020 8:37 pm
Forum: Highcharts Usage
Topic: Have you done a release?
Replies: 4
Views: 1031
 
Jump to post

Re: Have you done a release?

I have the exact same problem in the Highstock.js (I posted in the Hightstock forum). Clearing the cache and reverting to 8.0.0 did not solve the problem. Can you tell me the latest stable version for Highstock? I have tried https://code.highcharts.com/stock/8.0.0/highstock.js but that version now g...
by cpopolo
Mon Mar 02, 2020 5:23 pm
Forum: Highcharts Stock
Topic: New bug today with Highstock v 8.0.1 (02-March) this.init is not a function
Replies: 5
Views: 1173
 
Jump to post

New bug today with Highstock v 8.0.1 (02-March) this.init is not a function

Just today I'm seeing a problem with the highlighted line of code below (part of sample code for a sunburst chart). var pieColors = (function () { var colors = [], base = Highcharts.getOptions().colors[3], i; base = "#ff9900"; for (i = 0; i < 20; i += 1) { // Start out with a darkened base...
by cpopolo
Sun Aug 26, 2018 6:10 pm
Forum: Highcharts Usage
Topic: Update pie at second level of drilldown - possible?
Replies: 5
Views: 1526
 
Jump to post

Re: Update pie at second level of drilldown - possible?

Thanks again Wojtek, your solution is a bit cleaner than what I ended up doing, but the "update" of the series logic is very similar to what you did. Thanks.
by cpopolo
Sun Aug 26, 2018 6:02 pm
Forum: Highcharts Usage
Topic: Line chart doesnt show points with datetime (HH:MM) xAxis
Replies: 4
Views: 4318
 
Jump to post

Re: Line chart doesnt show points with datetime (HH:MM) xAxi

If I remove the min and max in your JSFiddle, the chart works fine. My guess is that you are setting min/max in timestamp format, so you would need to convert your x values to timestamp as well. The units for min/max should probably be on the same scale as your data. t = new Date("2018-08-24T00...
by cpopolo
Sun Aug 26, 2018 5:49 pm
Forum: Highcharts Usage
Topic: WaterFall x axis
Replies: 2
Views: 2796
 
Jump to post

Re: WaterFall x axis

Seems to work fine if I uncomment your x values, and even change them, e.g: series: [{ data: [{ x: 31, y: 120000 }, { x: 44, y: 569000 }, { x: 12, y: 231000 }, { x: 16, y: -342000 }, { x: 13, y: -233000 }] }]
by cpopolo
Sun Aug 26, 2018 5:41 pm
Forum: Highslide Editor
Topic: What format does Json data need to be in
Replies: 1
Views: 7079
 
Jump to post

Re: What format does Json data need to be in

Assuming JavaScript, you already have a JavaScript array. Here are some transforms that might be helpful: a = [[4.000000000000000],[23.000000000000000],[2.000000000000000]] // A short version of your array b = JSON.stringify(a) returns: "[[4],[23],[2]]" c = JSON.parse(b) returns a JSON rep...
by cpopolo
Fri Aug 24, 2018 4:34 am
Forum: Highcharts Usage
Topic: Intercept click event before animation?
Replies: 7
Views: 1777
 
Jump to post

Re: Intercept click event before animation?

Wojtek, that works perfectly - thank you... Here is my final product: http://logbook.merrimackrowing.org/charts/all-charts.php The goal was to have a spinner on any click event, and that's been achieved. I'm still not very clear on how the override is constructed but I think if I study on how the ap...

Go to advanced search