Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlight one line in the chart? #107

Open
ReHWolution opened this issue Jun 10, 2018 · 12 comments
Open

Highlight one line in the chart? #107

ReHWolution opened this issue Jun 10, 2018 · 12 comments

Comments

@ReHWolution
Copy link

Hi methnen, I was wondering if there will be the option to highlight a single field in a chart, so that you could show what's the main focus of a chart.
Thanks!

@methnen
Copy link
Owner

methnen commented Jun 10, 2018

I'm pretty sure that's quite doable and relatively easily at that. I'm not sure on an ETA though given that my main priority right now is to fully decouple Highcharts from the main plugin so I can get it listed on wordpress.org again. I'm in the midst of that work right now and it's quite a change so that release is likely to be very light on new features though I'll possibly be able to fit something like this in as well. We'll see.

@methnen
Copy link
Owner

methnen commented Aug 13, 2018

Just an update. Looked into this and it's not entirely straightforward like I'd hoped, but definitely doable. Need to think through what the UI for it would look like though.

Making this post to link to this forum reply where a Highcharts dev provided examples of how this might be done in Highcharts:

https://forum.highcharts.com/post142269.html?sid=886a7cee1d0ce329489156598e3b4e3b

@ReHWolution
Copy link
Author

Oh, I see. But that would go against making the chart custom for the users that read it. They could change it too easily and lose the point of the chart.
I'm very ignorant when it comes to programming, but maybe, some kind of check mark to select when doing a chart in order to change that row or column specific color?

@methnen
Copy link
Owner

methnen commented Aug 13, 2018

His method is interactive. I think just to demonstrate how it could be done.

I'm imagining something where the interaction happens on the Admin Panel end but is not changeable/interactive when someone views the chart.

Basically by choosing a point/series in the chart you'd be setting a parameter that gets used to highlight that data point for the visitors but they wouldn't be able to do the same on their end they'd just see a highlighted series/data point.

@ReHWolution
Copy link
Author

Yes, yes, exactly. If you need a guinea pig, feel free to ask me. After all, we're also friends on Facebook :) (Ciro Sdino here) ;)

@ReHWolution
Copy link
Author

@methnen dusting off this request to see if something changed in 6 years! Do you believe it is possible now to do such a thing as highlight a single line?

@methnen
Copy link
Owner

methnen commented Sep 12, 2024

@ReHWolution I have thought about this a bit more and I think maybe a custom one off version of how to do this would be best probably.

A few questions:

Are you still using the Highcharts version primarily?

Do you have or have you used the Advanced Custom Fields plugin at all?

@ReHWolution
Copy link
Author

@ReHWolution I have thought about this a bit more and I think maybe a custom one off version of how to do this would be best probably.

A few questions:

Are you still using the Highcharts version primarily?

Do you have or have you used the Advanced Custom Fields plugin at all?

Hi! In order:
No, at a certain point I started using the chart.js version, I only have the highchart plugin installed for compatibility with the old charts I did years ago.
No, never used ACF!

@methnen
Copy link
Owner

methnen commented Sep 12, 2024

Got it, ok.

So I'm mentioning ACF because it provides a very fast way to prototype a new interface for anything basically.

I will test a method to do this on my dev setup and see if I can prototype something quickly.

If I succeed I'll let you know.

@ReHWolution
Copy link
Author

Thanks a lot, it means so much!

@methnen
Copy link
Owner

methnen commented Sep 24, 2024

@ReHWolution I am still poking at this a bit.

Can you list which chart types you'd like to be able to do this on. I'm assuming line charts. But any others?

@ReHWolution
Copy link
Author

Yes, line charts and maybe spline charts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants