TWebGoogleChart Problems

Hi,

I have two questions concerning TWebGoogleChart:

1) Event onCustomize ChartJSON has 2 params but in documentation only one (Sender)

procedure TfrmDashboard.wbglchrtProductionStatusCustomizeChartJSON(Sender: TObject; var Options: string);

2) Where can I get Data and Chart attribute in google chart object. I can't find this but in documentation on page 178 and example on page 181 I see this possibility.

Regards,



TWebGoogleChart Problems

Hi,


We are investigating your questions and will report back as soon as possible.

Ok ... thx 

Hi,

Any news about this issue?

Second point is important for me.

Regards,

  1. That is correct. The PDF manual has been updated to reflect this and the extra information will be available with the next update of the TMS FNC Cloud Pack.

    2) Chart and Data are two TWebGoogleChart properties of the type TJSObject.

    Example:
    procedure TForm1.WebButton1Click(Sender: TObject);
    var
      data: TJSObject;
      chart: TJSObject;
    begin
      data := WebGoogleChart1.Data;
      chart := WebGoogleChart1.Chart;
      asm
        data.setValue(0, 1, 20); //rowIndex, columnIndex, value
        data.addColumn('number', 'Label'); //datatype, label
        data.addRow(['Row', 10, 20, 30, 40]); //rowTitle, Column values
        chart.draw(); //update chart
      end;
    end;


ok ... thx very much for your answer