How to alter precision to 0.
currently its 2 in "chart\chart_views\includes\views\chart_views_plugin_style_chart.inc file.
For any integer value it takes precision to 2.
but i want precision.
plz provide me any hint.

Comments

dayanaspatel’s picture

Assigned: dayanaspatel » Unassigned
dayanaspatel’s picture

I have do it in mu custom module.Not in the same chart module.
and i have to set ,

chart\chart_views\includes\views\chart_views_plugin_style_chart.inc\line 18

function options(&$options) {
// Get the default chart values
$options['aggregation_field'] = '';
$options['calc_fields'] = array();
$options['calc'] = 'COUNT';
$options['precision'] = 0; // 2 to 0.
}

13rac1’s picture

Version: 6.x-1.3 » 6.x-1.x-dev
Category: support » feature
Priority: Major » Minor

Add an option in the options_form() to allow precision adjustment for the MySQL ROUND() function.

Pierre.Vriens’s picture

Title: Alter precision to 0. » Add option to allow precision adjustment
Issue summary: View changes
Parent issue: » #2371567: Chart 6.x-2.x Release
apaderno’s picture

Status: Active » Closed (outdated)

I am closing this issue, as Drupal 6 is no longer supported.