score:1
You will need to use the highcharts formatter callback feature to achieve this since that format is nonstandard.
Note that is has nothing to do with php whatsoever. You just provide your values to highcharts as plain floating-point values and reformat them there for display as necesary (otherwise you'll either waste your time or run into problems in your graph, such as values not being ordered properly).
A few such properties in highcharts are :
http://api.highcharts.com/highcharts/xAxis.labels.formatter http://api.highcharts.com/highcharts/legend.labelFormatter http://api.highcharts.com/highcharts/tooltip.formatter
In any case, your callback function would have to get the floating-point number value, convert it to a string, and pad any number of zeroes to the right until it is the right length.
Source: stackoverflow.com
Related Query
- Php turn decimal string into decimal, but keep trailing zeros
- Passing Decimal string from php to jquery
- How do I turn string insert data into a series for react highcharts?
- Highcharts code with same set of code/data works in PHP but does not work in JSfiddle
- How to format PHP into the proper string for JSON in pie chart using highchart
- Highcharts - set maximum range for yAxis but keep axis dynamic within that range
- Rails - convert date string into javascript date object for highcharts
- Turn long list of items in Highcharts legend into dropdown
- Code works on fiddle but not when I do /show
- How to populate a Highcharts axis with string formatted data from a PHP array
- highcharts: disable default buttons but keep custom button
- How to add php data into highchart js file in php
- highcharts reversed yAxis but keep fill area below spline?
- Column Highchart - display absolute values but keep information about which values are negative
- convert string into array for highcharts js
- Loading JSON string into a pie chart in highcharts
- Parsing string array into chart
- How to push data into highchart with just one decimal place?
- Simple, Open source PHP wrapper for Highcharts library
- Yii2 How to pass php array data into highcharts
- Php 2D array into javascript array in highcharts
- Strange character in the Highstock source code
- load data from text file into HIGHCHART graphic using PHP
- Format date string into highcharts
- I had follow someone code samples and try apply to my HighChart program but I can't get it work at all
- Passing Returned Data from a PHP Script into a Highcharts data[] block?
- How to convert php array into javascript array for Highchart JS
- Deleting last entered comma on PHP code
- Pass a PHP string (which represents a JS function) through json_encode()
- Converted PHP code that built an array to JS and now highcharts doesn't work - what did I do wrong?
More Query from same tag
- Highcharts - Sankey chart - How to display some series dataLabels name into icon or some different name
- How to clear blank below heatmap
- Child component not loading correctly in ngFor (but updates after resizing windows)
- Dynamically change renderer.text css attribute in HighCharts
- How to add a vertical plot line in multiple line series and show the tooltip on Plot line in highchart
- define x values for hc_add_series_list in highcharter
- Render Highcharts data table to separate container as chart via drawing API?
- the milliseconds data is not present in the history data of highcharts
- How to hide/disable the legend box in Highcharts.js?
- Two different data range for Y-axis in DotNet Highchart
- HighChart.js : How to group nodes in organization chart
- How to create a highchart using mysql data (PHP)?
- Highcharts - Enable border for 1 column/bar only?
- Highcharts - Stack Graph Display Average of all values
- Convert Date to Milliseconds
- creating a bar chart using Highcharts with React - getting an error that rendering div isn't found
- Retrieve data from Parse.com and Display it in amcharts.js or highchart.js
- Highchart with background should be Dots instead of Grid
- Highstock columnrange data grouping values not consistent
- get access to chart-object in highchart
- Render charts based on type with AngularJS components
- jQuery initially not loading in IE9 quirks mode
- Highcharts: x axis label issue with a single data point
- How can I add a "for" in a Highcharts series?
- R Highcharter: On x-axis, Date is not showing correctly when dataframe has only one result
- Highcharts - toggle auto scale
- Creating a chart in angular2 to show the median value of given data
- Add text to generated quadrant area by x and y plot lines only when hovering , highcharts
- Responsive highchart gauge
- Convert DataTable to array for highcharts