summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKore Nordmann <mail@kore-nordmann.de>2013-12-21 11:01:31 +0100
committerKore Nordmann <mail@kore-nordmann.de>2013-12-21 11:01:31 +0100
commit5273fe7e6d19a4bdad3d987540171ff3a55fe053 (patch)
tree8216fe63718b989046685d4be60ae856cdfa47d3
parent1211da284912d3f01fcf199d7c2fc24e207d41f3 (diff)
downloadzetacomponents-graph-5273fe7e6d19a4bdad3d987540171ff3a55fe053.zip
zetacomponents-graph-5273fe7e6d19a4bdad3d987540171ff3a55fe053.tar.gz
Use non-local dependent formatting options everywhere
-rw-r--r--src/options/pie_chart.php6
-rw-r--r--src/options/renderer_2d.php2
-rw-r--r--src/options/renderer_3d.php2
-rw-r--r--src/renderer/2d.php2
-rw-r--r--src/renderer/3d.php2
-rw-r--r--tests/logarithmical_axis_test.php4
-rw-r--r--tests/pie_test.php2
-rw-r--r--tests/renderer_3d_test.php2
8 files changed, 11 insertions, 11 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,
diff --git a/src/renderer/2d.php b/src/renderer/2d.php
index 9793e0a..81cbf7a 100644
--- a/src/renderer/2d.php
+++ b/src/renderer/2d.php
@@ -34,7 +34,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/renderer/3d.php b/src/renderer/3d.php
index 9d43c17..4a21f85 100644
--- a/src/renderer/3d.php
+++ b/src/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,
diff --git a/tests/logarithmical_axis_test.php b/tests/logarithmical_axis_test.php
index ed2c594..08dfcd0 100644
--- a/tests/logarithmical_axis_test.php
+++ b/tests/logarithmical_axis_test.php
@@ -156,9 +156,9 @@ class ezcGraphLogarithmicalAxisTest extends ezcGraphTestCase
'Wrong default value for property logarithmicalFormatString in class ezcGraphChartElementLogarithmicalAxis'
);
- $options->logarithmicalFormatString = '%2$.2f^%1$d';
+ $options->logarithmicalFormatString = '%2$.2F^%1$d';
$this->assertSame(
- '%2$.2f^%1$d',
+ '%2$.2F^%1$d',
$options->logarithmicalFormatString,
'Setting property value did not work for property logarithmicalFormatString in class ezcGraphChartElementLogarithmicalAxis'
);
diff --git a/tests/pie_test.php b/tests/pie_test.php
index a6731d9..2652d03 100644
--- a/tests/pie_test.php
+++ b/tests/pie_test.php
@@ -68,7 +68,7 @@ class ezcGraphPieChartTest extends ezcGraphTestCase
$options = new ezcGraphPieChartOptions();
$this->assertSame(
- '%1$s: %2$d (%3$.1f%%)',
+ '%1$s: %2$d (%3$.1F%%)',
$options->label,
'Wrong default value for property label in class ezcGraphPieChartOptions'
);
diff --git a/tests/renderer_3d_test.php b/tests/renderer_3d_test.php
index 90d22f3..6482ded 100644
--- a/tests/renderer_3d_test.php
+++ b/tests/renderer_3d_test.php
@@ -443,7 +443,7 @@ class ezcGraphRenderer3dTest extends ezcGraphTestCase
'Used' => 28,
) );
- $graph->options->label = '%1$s (%3$.1f%%)';
+ $graph->options->label = '%1$s (%3$.1F%%)';
// Configure renderer options
$graph->renderer = new ezcGraphRenderer3d();
OpenPOWER on IntegriCloud