When I try to use BarChart I have this error "Data column(s) for axis #0 cannot be of type string×".
My dataStore is configured as:
  $this->src('default')
      ->query("SELECT TIPO_SC, VALORE FROM MVS_DG_STATISTICHE WHERE  ANNORIFERIMENTO=:annoriferimento")
      ->params([':annoriferimento'=>$this->params['annoriferimento']])
      ->pipe(new Group([
                'by'=>['TIPO_SC','VALORE'],
                'count' => 'QUANTITA'
            ]))
      ->pipe($this->dataStore('dg_scXvalore')
In the example of BarChart the data source must be like this:
array(
        array("category"=>"Books","sale"=>32000,"cost"=>20000,"profit"=>12000),
        array("category"=>"Accessories","sale"=>43000,"cost"=>36000,"profit"=>7000),
        array("category"=>"Phones","sale"=>54000,"cost"=>39000,"profit"=>15000),
        array("category"=>"Movies","sale"=>23000,"cost"=>18000,"profit"=>5000),
        array("category"=>"Others","sale"=>12000,"cost"=>6000,"profit"=>6000),
    );
how I can setup the dataStore to extract this structure of data?
I want TIPO_SC on X axis and for each labels of TIPO_SC I wanted all the type of VALORE with relative count number, is it possible?