• Resolved kbogoe

    (@kbogoe)


    Hi, I am trying to build a stacked bar chart with chart.js but it seems that CFF does not accept my “stacked” option, it just places bars side by side. This is my sample code. What have I done wrong?

    CFFCHART(
            'my-chart',
            {
                type:'bar',
                data:{
                    labels:['Label A', 'Label B', 'Label C'],
                        datasets:[
                            {
                                label:'Previsions',
                                data:[300, 400, 500]
                            },
                            {
                                label:'Real',
                                data:[fieldname1, fieldname2, fieldname5]
                            }
                        		]
                        		},
            	options: {
        			responsive: true,
        			scales: {
          x: {
            stacked: true,
          },
          y: {
            stacked: true
          }
        }
    					}
            		}
        );
Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @kbogoe

    Thank you very much for using our plugin.

    We’d like to help but we can’t reply about that in this forum. We are not allowed to support any customers in these forums.

    For pro or commercial product support please contact us directly on our site, and CFFCHART operation is included only with the Developer and Platinum distributions of the plugin.

    Commercial products are not supported in these forums. We will happily answer this and any other questions you can have on our own site.

    Thank you.

Viewing 1 replies (of 1 total)

The topic ‘CFF Stacked Bar’ is closed to new replies.