Created
April 25, 2016 13:33
-
-
Save kevinkhill/5fceef98c0d8aebaec724085df55690e to your computer and use it in GitHub Desktop.
Lavacharts Issue Solution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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