This example uses an HTML <table> as a source dataset. (View a more advanced example.)

The query is to sum all "watched TV hours" (the metric), grouped by "Music style" (the dimension):

var Chart1=Engine.Chart("canvas");
Chart1.fill(Music, TV);


View source table data