Default graph type


(kylebuttress) #1

Hello,

Is there a way that to set the default graph type for different widgets?
The default is bar, yet for some it’s preferable to have them as pie graphs.

I may have missed this in the docs somewhere.

thanks
Kyle


(Rakesh) #2

While defining view (Check for $view in the code). You can define your desired graphType there.

Here is a sample code.

$view = $this->getStandardDataTableUserSettings(
FUNCTION,
‘UserSettings.getOS’,
‘graphPie’
);

Here I have used the graphPie for the Operating Systems data-table.

Regards,
RK

[quote=kylebuttress @ Aug 18 2009, 09:30 PM]Hello,

Is there a way that to set the default graph type for different widgets?
The default is bar, yet for some it’s preferable to have them as pie graphs.

I may have missed this in the docs somewhere.

thanks
Kyle[/quote]