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

magico’s picture

Any news about supporting this?

13rac1’s picture

Status: Needs work » Needs review

I'll do this once #1285554: Combined Patch for Chart Views Features and related are committed.

Pierre.Vriens’s picture

Issue summary: View changes
Parent issue: » #2371567: Chart 6.x-2.x Release
apaderno’s picture

Version: 6.x-1.2 » 6.x-1.x-dev
Status: Needs review » Closed (outdated)

I am closing this issue, as Drupal 6 is no longer supported.