Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I needed to use a line graph with a complete fill under the line.
I found I needed to allow for the special case of chm=B defined here:
http://code.google.com/apis/chart/colors.html#fill_area_marker
To do so, I adjusted the code in chart.module
// Shape markers
case 'chm':
if ($value && $value['#type'] !== 'B'){
$markers = array();
foreach($value AS $marker){
$markers[] = implode(',', $marker);
}
$data[$attr] = implode('|', $markers);
}
else {
$data[$attr] = implode(',', $value);
}
break;
I could then make an under line fill using:
'#shape_markers' => chart_shape_marker(0,0,'B',0,'76A4FB')
in the chart definition array.
hth,
DT
Comments
Comment #1
magico CreditAttribution: magico commentedAny news about supporting this?
Comment #2
13rac1 CreditAttribution: 13rac1 commentedI'll do this once #1285554: Combined Patch for Chart Views Features and related are committed.
Comment #3
Pierre.Vriens CreditAttribution: Pierre.Vriens commentedComment #4
apadernoI am closing this issue, as Drupal 6 is no longer supported.