php-reports icon indicating copy to clipboard operation
php-reports copied to clipboard

Adding Stacked bar charts

Open pydubreucq opened this issue 9 years ago • 1 comments

Hi, It could be a nice feature du add Stacked bar charts type like in this docs : https://developers.google.com/chart/interactive/docs/gallery/barchart I don't know how, but it could be very usefull to me. Best Regards Pierre-Yves

pydubreucq avatar Jun 16 '15 08:06 pydubreucq

Hi, Have you tried something like this: For 100% Stacked bars:

-- CHART: {
--      type: "ColumnChart",
--      dataset: 0,
--      columns: [
--          "Name of the client",
--          "No of sold",
--          "No of ordered"
--      ],
--      options: {
--          isStacked: "percent",
--          animation: {
--              duration: 2000,
--              easing: 'inAndOut',
--              startup: true,
--          },
--          explorer: { keepInBounds: true }
--      }
-- }

OR for just Stacked Bars:

-- CHART: {
--      type: "ColumnChart",
--      dataset: 0,
--      columns: [
--          "Name of the client",
--          "No of sold",
--          "No of ordered"
--      ],
--      options: {
--          isStacked: true,
--          animation: {
--              duration: 2000,
--              easing: 'inAndOut',
--              startup: true,
--          },
--          explorer: { keepInBounds: true }
--      }
-- }

PhobosK avatar May 24 '19 17:05 PhobosK