Asontu

Herman Scheele
.NET, C#, Sitecore developer and Data Science engineer @ theFactor.e.

profile for asontu at Stack Overflow, Q&A for professional and enthusiast programmers

Tech-blog about C#, Sitecore, T-SQL, Front-end, Python, Data Science and everything in between run by Herman Scheele

RSS Archive
27 March 2020

User-editable points in Highcharts

A customer wanted data displayed in a chart and be able to edit a single point. It seemed to me the best UX would be to have a button in Highchart’s Tooltip with which to edit the value. Searching for a solution I found more people asking for this feature but not really an answer I could work with.

So I went to work and came up with this, using this Stack Overflow answer cloning the tooltip and this plugin for a tooltip-show event.

Code below and demo on JSFiddle. Click a point, it sticks, double-click the value and a prompt comes up for a new value.

tags: Front-end - Javascript