Project

General

Profile

Defect #678

unable to show bar chart

Added by Jos de Bruijn about 12 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
03/28/2013
Due date:
% Done:

0%

Estimated time:
Browser (if web client):

Description

i'm trying to show a bar chart, but it does not show up in my report.

This is the (valid) google string I feed the chart script builder:

http://chart.googleapis.com/chart?chxl=0:|jan|feb|mrt&chxr=1,0,40&chxt=x,y&chbh=r&chs=1000x250&cht=bvg&chco=76A4FB&chds=0,40&chd=t:33,0,14&chdlp=b&chg=0,12.5&chm=N,0000FF,0,-1,11&chtt=DLT+in+dagen

and this is the code generated:

function getChart(data, labels) {
    var eastwood = false;

    var chartDef = {};
    chartDef.width = 1000;
    chartDef.height = 250;
    chartDef.title = 'DLT in dagen';
    chartDef.legendPosition = 'bottom';
    chartDef.xAxis = { labels: ['jan','feb','mrt'] };
    chartDef.yAxis = { maxRange: 40.0, minRange: 0.0 };
    chartDef.grid = { y: 12.5, line: 3, blank: 6 };
    chartDef.barWidth = 0;
    chartDef.maxValue = 40.0;
    chartDef.bars = [];
    chartDef.bars.push( {
        data: [33.0,0.0,14.0],
        color: ['#76A4FB'],
        markers: [{ text: '', color: '#0000FF', index: -1 }]
    } );

    return plugins.VelocityReport.getChart(plugins.VelocityReport.CHART.BAR, chartDef, eastwood, plugins.VelocityReport.REPORT.RESOLUTION_LOW);
}

History

#1

Updated by Jos de Bruijn about 12 years ago

The problem seems to be in the chartDef.grid line. When I remove that part the chart is correctly generated.

#2

Updated by Patrick Talbot about 12 years ago

  • Priority changed from High to Normal

Please don't set the priority of tickets to 'High' or be prepared to put an incentive on it...

I'll have a look for sure, but cannot guarantee when.
So if really is a high priority for you, make it one for me as well by clicking on the 'Incentify' link.

Thanks!

#3

Updated by Jos de Bruijn about 12 years ago

Sorry about that, I did not know that.
I placed it at high priority because the plugin seemed to fail on a valid google string. This was before I knew the grid option was the cause of the problem.

#4

Updated by Patrick Talbot about 12 years ago

  • Status changed from New to Closed

Fixed in v3.1b08 (make sure you update the /plugins/velocity_report/*.jar as well as the plugin jar and jnlp)

Also available in: Atom PDF