View is set to display a custom post type.
Limit is set to 12.
Query filter is set to a custom taxonomy.
Here's example chart code with manual data in Layout HTML:
Here's an example of the chart code with manual data for three months:
[wp_charts title="barchart" type="bar" align="alignleft" margin="5px 20px"
datasets="105,99,132 next 199,178,165 next 399,423,403" labels="April 2014,May 2014,June 2014"]
The above code outputs a chart as shown in the attached image.
Blue bars represent the first dataset (105,99,132), tan bars represent the second dataset (199,178,165), and orange bars represent the last dataset (399,423,403).
I've tried to use a View to output a similar chart (with 12 months of data) using custom fields for each of the datasets and for the labels.
I created a View to display a custom post type, set the limit to 12 and the query filter set to a custom taxonomy.
I've tried using one custom field for each dataset and one custom field for the dates - e.g.,
[wp_charts title="barchart" type="bar" align="alignleft" margin="5px 20px"
datasets="[types field="all-sales"output="raw"][/types] next [types field="new-sales"output="raw"][/types] next [types field="existing-sales"output="raw"][/types]" labels="[types field="current-month"output="raw"][/types] [types field="current-year="raw"][/types]"]
This simply outputs a chart for a single month.
I've also tried mimicking the manual example from above by repeating custom fields (and setting the limit in the View to 3) - e.g.,
[wp_charts title="barchart" type="bar" align="alignleft" margin="5px 20px"
datasets="[types field="all-sales"output="raw"][/types],[types field="all-sales"output="raw"][/types],[types field="all-sales"output="raw"][/types] next [types field="new-sales"output="raw"][/types],[types field="new-sales"output="raw"][/types],[types field="new-sales"output="raw"][/types] next [types field="existing-sales"output="raw"][/types],[types field="existing-sales"output="raw"][/types],[types field="existing-sales"output="raw"][/types]" labels="[types field="current-month"output="raw"][/types] [types field="current-year="raw"][/types],[types field="current-month"output="raw"][/types] [types field="current-year="raw"][/types],[types field="current-month"output="raw"][/types] [types field="current-year="raw"][/types]"]
This outputs a chart for 3 months but uses the same data from the same month.
Let me know if you need more information.
Thanks