customize highcharts tooltip to show datetime

You can use moment.js to get the values formatted, but Highcharts has it’s own date formatting functionality which would be more idiomatic with Highcharts. It can be attached onto the tooltip option in the highcharts constructor like so: tooltip: { formatter: function() { return ‘<b>’ + this.series.name +'</b><br/>’ + Highcharts.dateFormat(‘%e – %b – %Y’, new … Read more

Highcharts Tooltip cropping

I’m pretty sure, that similar topic exists on stack, however I can’t find it. In general it is possible to achieve that using HTML tooltip, see: http://jsfiddle.net/7wVDV/147/ CSS: .highcharts-container { overflow: visible !important; } .MyChartTooltip { position: relative; z-index: 50; border: 2px solid rgb(0, 108, 169); border-radius: 5px; background-color: #ffffff; padding: 5px; font-size: 9pt; }

Can I scrape the raw data from highcharts.js?

The data is in a script tag. You can get the script tag using bs4 and a regex. You could also extract the data using a regex but I like using /js2xml to parse js functions into a xml tree: from bs4 import BeautifulSoup import requests import re import js2xml soup = BeautifulSoup(requests.get(“http://www.worldweatheronline.com/brussels-weather-averages/be.aspx”).content, “html.parser”) script … Read more

Highchart – show / hide an y-Axis without hiding the series

Highcharts 4.1.9+ Since 4.1.9, there is an option Axis.visible which can be used to show/hide an axis, demo: http://jsfiddle.net/3sembmfo/36/ Older versions of Highcharts It’s a new feature for Highcharts 3.0 – that allows to update axes in realtime: chart.yAxis[0].update(object) – as object takes the same options as for creating chart. For example: chart.yAxis[0].update({ labels: { … Read more