stable

Clone or download

Read-only

Support tlp colors in d3 graphontrackerv5

Part of request #11749 - Colors from new palette not display in charts This patch makes d3 charts support the colors from the new palette. How to test: - In your tracker administration > field usage, bind some tlp colors and legacy colors to a given selectbox field (ex: status). - set up a pie chart, a bar chart and a grouped bar chart based on the previous field. --> Legacy colors are still properly displayed --> tlp-colors are properly displayed --> for chart having a legend box, the elements are highighted on the hover event. Legends are highlighted when the elements are hovered. Note: for the grouped bar chart it is actually not obvious that the elements are higlighted because only the number on top of the bars become bolder. - Send each chart to your personnal dashboard --> Eiach chart is properly displayed and is fully functionnal. Change-Id: I416c880a06a9f06a1efe7ac7a420c82a32db8bcd

Modified Files

Name
M plugins/graphontrackersv5/include/data-transformation/ChartDataBuilderV5.class.php +10 −6 Go to diff View file
M plugins/graphontrackersv5/include/graphic-library/GraphOnTrackersV5_Engine.class.php +14 −1 Go to diff View file
M plugins/graphontrackersv5/www/scripts/graphs-bar.js +20 −4 Go to diff View file
M plugins/graphontrackersv5/www/scripts/graphs-groupedbar.js +27 −3 Go to diff View file
M plugins/graphontrackersv5/www/scripts/graphs-pie.js +18 −4 Go to diff View file
M plugins/graphontrackersv5/www/scripts/graphs.js +9 −2 Go to diff View file
M plugins/graphontrackersv5/www/themes/default/css/style.scss +8 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List_Bind_Static.class.php +1 −1 Go to diff View file