I'm trying to plot a bar chart with two data set points say 335,285, so by looking at values 1st bar should be longer than 2nd value but while plotting bar chart it always takes 335 as max value and plots two points on same level of 335. I have also tried plotting with data set array(200,50,100), with this, 1st and last points are at 200 which shouldn't. Below is my code,
$chart = array(
'#chart_id' => 'test_chart',
'#title' => chart_title(t('Bar Chart'), 'cc0000', 15),
'#type' => CHART_TYPE_BAR_V_GROUPED,
'#size' => chart_size(400, 200),
'#grid_lines' => chart_grid_lines(30, 15),
'#chart_fill' => chart_fill('bg', 'ffffff'),
'#bar_size' => chart_bar_size(15, 5),
);
$chart['#data'][] = array(200,50,100);
$chart['#data_colors'][] = '3598D9';
$vars['line_chart'] = theme('chart', array('chart' => $chart));
echo $vars['line_chart'];
Comments
Comment #1
Pierre.Vriens CreditAttribution: Pierre.Vriens commentedWhy is this issue related to component system charts? Isn't this rather about docu, or otherwise code?
Moreover, at this point I am not convinced it is a bug, only a (valid) support request, right? I'll give if some time to get some feedback about my questions. Without such feedback I'll go ahead and assume nobody is against updating this issue like I perceive it.
Other question: I think I more or less understand the question, but before diving into debugging what's wrong: nobody out there who can give a hint to soon get this issue resolved?
Comment #2
Pierre.Vriens CreditAttribution: Pierre.Vriens commentedAbout 1 week later no feedback received. Therefor I'm updating this issue as I suggested before.