2 added 598 characters in body
source | link

Option 1

Refer to the issue about Stacking column/bar charts for an example of how you can do this with a custom module. Comment #3 in it contains a sample like so:

<?php
function MYMODULE_chart_alter(&$chart, $chart_id) {
  dsm($chart_id); // Need Developer module enabled for dsm to work
  if ($chart_id == 'MYCHARTVIEW__DISPLAY') { // Watch out for those double underscores
    $chart['#stacking'] = TRUE;
  }
}
?>

This should work for both Google Charts and Highcharts as the charting library (engine).

Option 2

Your x_qc_status is like the equivalent of "Joe" in the sample you referred to. But you don't have any equivalent of at least "John" (and maybe also "Jane")? In other words: I think you only have 1 dataset to be shown in your "stacked" bar chart, and that your problem is not in the chart, but in the related "view" for which you want to create a "stacked" chart.

Therefor try the "bonus tip" mentioned in Steps to create charts using the views UI. That may help to refine your view before actually creating the chart.

Refer to the issue about Stacking column/bar charts for an example of how you can do this with a custom module. Comment #3 in it contains a sample like so:

<?php
function MYMODULE_chart_alter(&$chart, $chart_id) {
  dsm($chart_id); // Need Developer module enabled for dsm to work
  if ($chart_id == 'MYCHARTVIEW__DISPLAY') { // Watch out for those double underscores
    $chart['#stacking'] = TRUE;
  }
}
?>

This should work for both Google Charts and Highcharts as the charting library (engine).

Option 1

Refer to the issue about Stacking column/bar charts for an example of how you can do this with a custom module. Comment #3 in it contains a sample like so:

<?php
function MYMODULE_chart_alter(&$chart, $chart_id) {
  dsm($chart_id); // Need Developer module enabled for dsm to work
  if ($chart_id == 'MYCHARTVIEW__DISPLAY') { // Watch out for those double underscores
    $chart['#stacking'] = TRUE;
  }
}
?>

This should work for both Google Charts and Highcharts as the charting library (engine).

Option 2

Your x_qc_status is like the equivalent of "Joe" in the sample you referred to. But you don't have any equivalent of at least "John" (and maybe also "Jane")? In other words: I think you only have 1 dataset to be shown in your "stacked" bar chart, and that your problem is not in the chart, but in the related "view" for which you want to create a "stacked" chart.

Therefor try the "bonus tip" mentioned in Steps to create charts using the views UI. That may help to refine your view before actually creating the chart.

1
source | link

Refer to the issue about Stacking column/bar charts for an example of how you can do this with a custom module. Comment #3 in it contains a sample like so:

<?php
function MYMODULE_chart_alter(&$chart, $chart_id) {
  dsm($chart_id); // Need Developer module enabled for dsm to work
  if ($chart_id == 'MYCHARTVIEW__DISPLAY') { // Watch out for those double underscores
    $chart['#stacking'] = TRUE;
  }
}
?>

This should work for both Google Charts and Highcharts as the charting library (engine).