#015095: axis is drawn inside a line

Description:

http://dev.bnovc.com/tmp/users_by_version_pid1.png


                    $users_active = array();
                    $users_crashed = array();

                    $upgrades_model = new Upgrades_Model;
                    $model_data = $upgrades_model->getActiveByVersion($product_id);
                    foreach ($model_data as $version_data) {
                        $users_active[$Product->formatVersion($version_data->version)] = $version_data->count;
                    }
                    $data = $users_active;

                    $shutdowns_model = new Shutdowns_Model;
                    $model_data = $shutdowns_model->getByUserByVersion($product_id);
                    foreach ($model_data as $version_data) {
                        $version = $Product->formatVersion($version_data->version);
                        if (isset($users_active[$version])) {
                            $users_crashed[$version] = $version_data->count;
                        }
                    }
...
                    $graph->background->background = '#ffffff';
                    $graph->data['Active Users'] = new ezcGraphArrayDataSet($users_active);
                    $graph->data['Active Users']->highlight = true; 
                    if (count($users_crashed) > 0) {
                        $graph->data['Crashed Users'] = new ezcGraphArrayDataSet($users_crashed);
                        $graph->data['Crashed Users']->highlight = true; 
                    }

                    // Graph options
                    $graph->xAxis->labelCount = max(2, count($users_active), count($users_crashed));
                    $graph->options->highlightSize = 8;
                    $graph->yAxis->min = 0;

                    $graph->xAxis->axisLabelRenderer = new ezcGraphAxisRotatedLabelRenderer();
                    $graph->xAxis->axisLabelRenderer->angle = 10;
                    $graph->xAxis->axisSpace = .2; 
                    $graph->xAxis->font->maxFontSize = 5; 
...
                $graph = new ezcGraphBarChart();
                $graph->title = 'Users by Version';
                $graph->legend->portraitSize = .1;
...
        $graph->driver = new ezcGraphGdDriver();
        $graph->options->font = $this->font;

        $graph->options->font->minFontSize = 5;
        $graph->options->font->maxFontSize = 12;

        // Set the font size for the title independently to 14
        $graph->title->font->maxFontSize = 14; 

Environment:

Operating System:
PHP Version: (please be specific, like '4.4.3' or '5.1.5')
Database and version:
Browser (and version):


- Attachments

No attachments for this issue.


- Comments

Started discussion on this bug on the mailinglist:

http://lists.ez.no/pipermail/components/2009-June/004336.htmlurl

#262097 by Kore Nordmann on June 29th, 2009 [Permanent Link]

Implemented a special axis label renderer for rotated labels in bar charts in revision #10670, called ezcGraphAxisRotatedBoxedLabelRenderer.

#262334 by Kore Nordmann on July 21st, 2009 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Component Components » Graph
Affects Unknown
Fix Version -
Reporter Anthony Newnam
Responsible Kore Nordmann
Status 0 Closed
Resolution Fixed
Created June 23rd, 2009
Updated July 21st, 2009
Resolved July 21st, 2009
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels