added a parameter for setting the marker color

This commit is contained in:
Joshua Seigler 2016-07-03 03:44:10 -04:00
parent 2ca82f8258
commit 7701635a6c
3 changed files with 21 additions and 2 deletions

View file

@ -51,6 +51,23 @@ $chart = new NeatCharts\LineChart(randomData(), [
'fontSize'=>14
]);
echo $chart->render();
?>
<figcaption>Random generated data, loaded right in the page</figcaption>
</figure>
</section>
<section>
<h2>Smoothed SVG chart in <code>svg</code> tag</h2>
<figure>
<?php
$chart = new NeatCharts\LineChart(randomData(12), [
'width'=>300,
'height'=>300,
'lineColor'=>'#080',
'labelColor'=>'#222',
'smoothed'=>true,
'fontSize'=>14
]);
echo $chart->render();
?>
<figcaption>Random generated data, loaded right in the page</figcaption>
</figure>
@ -63,8 +80,9 @@ $chart = new NeatCharts\LineChart(randomData(48), [
'width'=>100,
'height'=>20,
'lineColor'=>'#000',
'markerColor'=>'#F00',
'smoothed'=>false,
'fontSize'=>2,
'fontSize'=>4,
'yAxisEnabled'=>false,
'xAxisEnabled'=>false
]);