Bitcoin Forum
October 15, 2024, 12:44:59 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Need help with PHP and charting (display example inluded)  (Read 45 times)
OutOfMemory (OP)
Legendary
*
Offline Offline

Activity: 1694
Merit: 3395


Man who stares at charts (and stars, too...)


View Profile
December 09, 2023, 06:03:04 PM
Last edit: December 09, 2023, 10:13:46 PM by OutOfMemory
 #1

Hi folks,

i have a good reason to sort of revive my PHP programming again.
There are not many things i didn't do with PHP yet, but i need help with charting.
It's not hard to create the data, but i ceased to find a library that easily lets me display a simple chart like this:



The line is representing non-zero values, positive and negative, but the differnce to zero should be colored (red for negative diff, green for positive).
Any hints or tips?

Thanks  Grin

EDIT:

For now, it looks like the Highcharts JS API will do.
Using the "area" type of Graph, setting css properties .highcharts-point and .highcharts-graph.highcharts-negative to the desired colors does the trick.

You can only have a good shit in nature if you know how to ignore all these annoying flies.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!