diff options
author | Kore Nordmann <mail@kore-nordmann.de> | 2013-12-21 11:01:31 +0100 |
---|---|---|
committer | Kore Nordmann <mail@kore-nordmann.de> | 2013-12-21 11:01:31 +0100 |
commit | 5273fe7e6d19a4bdad3d987540171ff3a55fe053 (patch) | |
tree | 8216fe63718b989046685d4be60ae856cdfa47d3 /src/options | |
parent | 1211da284912d3f01fcf199d7c2fc24e207d41f3 (diff) | |
download | zetacomponents-graph-5273fe7e6d19a4bdad3d987540171ff3a55fe053.zip zetacomponents-graph-5273fe7e6d19a4bdad3d987540171ff3a55fe053.tar.gz |
Use non-local dependent formatting options everywhere
Diffstat (limited to 'src/options')
-rw-r--r-- | src/options/pie_chart.php | 6 | ||||
-rw-r--r-- | src/options/renderer_2d.php | 2 | ||||
-rw-r--r-- | src/options/renderer_3d.php | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/options/pie_chart.php b/src/options/pie_chart.php index e8a6b8d..c255313 100644 --- a/src/options/pie_chart.php +++ b/src/options/pie_chart.php @@ -40,7 +40,7 @@ * $graph->title = 'Access statistics'; * $graph->legend = false; * - * $graph->options->label = '%1$s (%3$.1f)'; + * $graph->options->label = '%1$s (%3$.1F)'; * $graph->options->percentThreshold = .05; * * $graph->data['Access statistics'] = new ezcGraphArrayDataSet( array( @@ -59,7 +59,7 @@ * String used to label pies * %1$s Name of pie * %2$d Value of pie - * %3$.1f Percentage + * %3$.1F Percentage * @property callback $labelCallback * Callback function to format pie chart labels. * Function will receive 3 parameters: @@ -89,7 +89,7 @@ class ezcGraphPieChartOptions extends ezcGraphChartOptions */ public function __construct( array $options = array() ) { - $this->properties['label'] = '%1$s: %2$d (%3$.1f%%)'; + $this->properties['label'] = '%1$s: %2$d (%3$.1F%%)'; $this->properties['labelCallback'] = null; $this->properties['sum'] = false; diff --git a/src/options/renderer_2d.php b/src/options/renderer_2d.php index 7008a0a..47eef5d 100644 --- a/src/options/renderer_2d.php +++ b/src/options/renderer_2d.php @@ -30,7 +30,7 @@ * $graph = new ezcGraphPieChart(); * $graph->palette = new ezcGraphPaletteBlack(); * $graph->title = 'Access statistics'; - * $graph->options->label = '%2$d (%3$.1f%%)'; + * $graph->options->label = '%2$d (%3$.1F%%)'; * * $graph->data['Access statistics'] = new ezcGraphArrayDataSet( array( * 'Mozilla' => 19113, diff --git a/src/options/renderer_3d.php b/src/options/renderer_3d.php index 8b0337b..36b3e44 100644 --- a/src/options/renderer_3d.php +++ b/src/options/renderer_3d.php @@ -34,7 +34,7 @@ * $graph = new ezcGraphPieChart(); * $graph->palette = new ezcGraphPaletteEzRed(); * $graph->title = 'Access statistics'; - * $graph->options->label = '%2$d (%3$.1f%%)'; + * $graph->options->label = '%2$d (%3$.1F%%)'; * * $graph->data['Access statistics'] = new ezcGraphArrayDataSet( array( * 'Mozilla' => 19113, |