mirror of
https://github.com/seigler/neat-charts
synced 2025-07-27 01:16:09 +00:00
added a parameter for setting the marker color
This commit is contained in:
parent
2ca82f8258
commit
7701635a6c
3 changed files with 21 additions and 2 deletions
20
demo.php
20
demo.php
|
@ -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
|
||||
]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue