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

How to add a value marker to JavaFX chart?

To convert chart values to pixels you can use method NumberAxis#getDisplayPosition() which return actual coordinates of the chart nodes. Although these coordinates are relative to chart area, which you can find out by next code: Node chartArea = chart.lookup(“.chart-plot-background”); Bounds chartAreaBounds = chartArea.localToScene(chartArea.getBoundsInLocal()); Note localToScene() method which allows you to convert any coordinates to Scene … Read more

VBA: Modify chart data range

Offset function dynamic range makes it possible. Sample data Steps Define a dynamic named range =OFFSET(Sheet1!$A$2,,,1,COUNTA(Sheet1!$A$2:$Z$2)) and give it a name mobileRange Right Click on Chart Click on Select Data This screen will come Click on Edit under Legend Entries.(mobiles is selected) change the Series value to point to mobileRange named range. Now if data … Read more

Change the Point Color in chart excel VBA

Using: ActiveWorkbook.Sheets(“Sheet1”).ChartObjects(“Chart1”).Chart.SeriesCollection(1) Color of each point is .Points(PointNumber).Interior.Color The number of points you have to cycle though is .Points.Count The value of each point is .Points(PointNumber).Value colors of the markers themselves (Applies only to line, scatter, and radar charts): .Points(PointNumber).MarkerBackgroundColor = RGB(0,255,0) ‘ green .Points(PointNumber).MarkerForegroundColor = RGB(255,0,0) ‘ red .Points(PointNumber).MarkerStyle = xlMarkerStyleCircle ‘ change the … Read more

How to have actual values in matplotlib Pie Chart displayed

Using the autopct keyword As we know that the percentage shown times the sum of all actual values must be the actual value, we can define this as a function and supply this function to plt.pie using the autopct keyword. import matplotlib.pyplot as plt import numpy labels=”Frogs”, ‘Hogs’, ‘Dogs’ sizes = numpy.array([5860, 677, 3200]) colors … Read more