Skip to content

Instantly share code, notes, and snippets.

@kevinkhill
Created April 25, 2016 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinkhill/5fceef98c0d8aebaec724085df55690e to your computer and use it in GitHub Desktop.
Save kevinkhill/5fceef98c0d8aebaec724085df55690e to your computer and use it in GitHub Desktop.
Lavacharts Issue Solution
<?php
$data = $lava->DataTable();
$data->addStringColumn('Practice');
$data->addNumberColumn('Rooms');
$data->addNumberColumn('Capacity');
$data->addRow([ 'Yours', 1.45, 0.37 ]);
$data->addRow([ 'Benchmark', 1.6, 0.39 ]);
$lava->ComboChart('Sales', $data, [
'seriesType' => 'bars',
'series' => [
1 => [
'targetAxisIndex' => 1,
'type' => 'line'
]
],
'vAxes' => [
[
'format' => 'decimal',
'title' => 'Rooms',
'textStyle' => [
'color' => 'blue'
]
],
[
'format' => 'percent',
'title' => 'Capacity',
'textStyle' => [
'color' => 'red'
]
]
]
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment