Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
dayanaspatel CreditAttribution: dayanaspatel commentedComment #2
dayanaspatel CreditAttribution: dayanaspatel commentedI 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.
}
Comment #3
13rac1 CreditAttribution: 13rac1 commentedAdd an option in the options_form() to allow precision adjustment for the MySQL ROUND() function.
Comment #4
Pierre.Vriens CreditAttribution: Pierre.Vriens commentedComment #5
apadernoI am closing this issue, as Drupal 6 is no longer supported.