Skip to content

Commit

Permalink
- commit live-data update for Zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
browniebraun committed Nov 17, 2024
1 parent 0d8ce4f commit 9731ca6
Show file tree
Hide file tree
Showing 6 changed files with 1,209 additions and 43 deletions.
15 changes: 15 additions & 0 deletions graph_json.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,21 @@
$parts = explode(' = ', $line);
$oarray[$parts[0]] = trim($parts[1]);
}

if (isset($oarray['meta'])) {
if(isset($oarray['meta']['legend']) & isset($xport_meta['legend'])) {
foreach ($oarray['meta']['legend'] as $key => $value) {
$legend = trim(preg_replace( '/[^a-z0-9 _()]/i', '', $value ));
if($legend) {
$color = (isset($xport_meta['legend'][$legend])) ? $xport_meta['legend'][$legend] : '';
$oarray['meta']['legend'][$key] = array('legend' => $legend, 'color' => $color);
}else{
unset($oarray['meta']['legend'][$key]);
}
}
}
}

} else {
/* image type now png */
$oarray['type'] = 'png';
Expand Down
Loading

0 comments on commit 9731ca6

Please sign in to comment.