summaryrefslogtreecommitdiffstats
path: root/src/charts
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-02-26 10:18:00 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-02-26 10:18:00 +0000
commit15e0162c83faa211ea4e4e6cae7faf70e10e9a9c (patch)
tree972999d0443918acf78454610bb8cd9c32955753 /src/charts
parente9d7bc2afe91b3aa6633cfc987ffe29b0206fa89 (diff)
downloadzetacomponents-graph-15e0162c83faa211ea4e4e6cae7faf70e10e9a9c.zip
zetacomponents-graph-15e0162c83faa211ea4e4e6cae7faf70e10e9a9c.tar.gz
- Implemented #20276 for centered axis label renderer
Diffstat (limited to 'src/charts')
-rw-r--r--src/charts/line.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/charts/line.php b/src/charts/line.php
index a0ec609..0f5aa42 100644
--- a/src/charts/line.php
+++ b/src/charts/line.php
@@ -227,6 +227,9 @@ class ezcGraphLineChart extends ezcGraphChart
}
break;
case ezcGraph::BAR:
+ // @TODO:
+ // - Use getSteps() to determine bar width
+ // - throw Exception on unregular step width on x axis
$barCount = (
( count ( $data ) - 1 ) > $this->elements['xAxis']->getMajorStepCount() ?
( $this->elements['xAxis']->getMajorStepCount() + 1 ) * ( $this->elements['xAxis']->getMinorStepCount() - 1 ) :
OpenPOWER on IntegriCloud