Plugin Directory

Changeset 343174


Ignore:
Timestamp:
02/09/2011 03:47:56 PM (15 years ago)
Author:
frold
Message:

Bug fixed Google Chart support - again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • runners-log/trunk/runnerslog_gchart.php

    r343157 r343174  
    4040        **              RELATED TO THE GOOGLE API           **
    4141        **********************************************************************************
    42 $data['chf']    Gradient Fills http://code.google.com/intl/da/apis/chart/docs/chart_params.html#gcharts_gradient_fills
     42$data['chf']        Gradient Fills http://code.google.com/intl/da/apis/chart/docs/chart_params.html#gcharts_gradient_fills
    4343$data['chxl']   Custom Axis Labels http://code.google.com/intl/da/apis/chart/docs/chart_params.html#axis_labels
    4444$data['chxr']   Axis Range http://code.google.com/intl/da/apis/chart/docs/chart_params.html#axis_range
    45 $chxp   Axis Label Positions http://code.google.com/intl/da/apis/chart/docs/chart_params.html#axis_label_positions
    46 $chxs   Axis Label Styles http://code.google.com/intl/da/apis/chart/docs/chart_params.html#axis_label_styles
    47 $chxtc  Axis Tick Mark Styles http://code.google.com/intl/da/apis/chart/docs/chart_params.html#axis_tick_marks
     45$data['chxp']   Axis Label Positions http://code.google.com/intl/da/apis/chart/docs/chart_params.html#axis_label_positions
     46$data['chxs']   Axis Label Styles http://code.google.com/intl/da/apis/chart/docs/chart_params.html#axis_label_styles
     47$data['chxtc']  Axis Tick Mark Styles http://code.google.com/intl/da/apis/chart/docs/chart_params.html#axis_tick_marks
    4848$data['chxt']   Visible Axes http://code.google.com/intl/da/apis/chart/docs/chart_params.html#axis_type
    49 $chbh   Bar Width and Spacing http://code.google.com/intl/da/apis/chart/docs/gallery/bar_charts.html#chbh
    50 $data['chs']    Chart Size http://code.google.com/intl/da/apis/chart/docs/chart_params.html#gcharts_chs
    51 $data['cht']    Chart Type http://code.google.com/intl/da/apis/chart/docs/chart_params.html#gcharts_cht
     49$data['chbh']   Bar Width and Spacing http://code.google.com/intl/da/apis/chart/docs/gallery/bar_charts.html#chbh
     50$data['chs']        Chart Size http://code.google.com/intl/da/apis/chart/docs/chart_params.html#gcharts_chs
     51$data['cht']        Chart Type http://code.google.com/intl/da/apis/chart/docs/chart_params.html#gcharts_cht
    5252$data['chco']   Series Colors http://code.google.com/intl/da/apis/chart/docs/chart_params.html#gcharts_series_color
    5353$data['chds']   Text Format with Custom Scaling http://code.google.com/intl/da/apis/chart/docs/data_formats.html#data_scaling
    54 $data['chd']    Chart Data String http://code.google.com/intl/da/apis/chart/docs/data_formats.html
     54$data['chd']        Chart Data String http://code.google.com/intl/da/apis/chart/docs/data_formats.html
    5555$data['chdl']   Chart Legend Text and Style http://code.google.com/intl/da/apis/chart/docs/chart_params.html#gcharts_legend
    56 $data['chl']    Chart Legend Text, when it is a pie
     56$data['chl']        Chart Legend Text, when it is a pie
    5757$data['chdlp']  Where the legand is placed. Top, right, left etc
    58 $data['chg']    Grid Lines http://code.google.com/intl/da/apis/chart/docs/chart_params.html#gcharts_grid_lines
    59 $data['chls']   Line Styles http://code.google.com/intl/da/apis/chart/docs/chart_params.html#gcharts_line_styles
     58$data['chg']        Grid Lines http://code.google.com/intl/da/apis/chart/docs/chart_params.html#gcharts_grid_lines
     59$data['chls']       Line Styles http://code.google.com/intl/da/apis/chart/docs/chart_params.html#gcharts_line_styles
    6060$data['chm']    Shape Markers http://code.google.com/intl/da/apis/chart/docs/chart_params.html#gcharts_shape_markers
    61 $data['chtt']   Chart Title http://code.google.com/intl/da/apis/chart/docs/chart_params.html#gcharts_chart_title
     61$data['chtt']       Chart Title http://code.google.com/intl/da/apis/chart/docs/chart_params.html#gcharts_chart_title
    6262
    6363        **********************************************************************************
     
    370370            $data['chf'] = 'a,s,000000CD|bg,lg,0,EFEFEF,0,BBBBBB,1|c,lg,0,EFEFEF,0,BBBBBB,1';
    371371            $data['chxl'] = '1:|'. join( '|', $xaxislable ) .'';
    372             $data['chxr'] = '0,0,'. ($maxvalue + 1) .'';
     372            $data['chxr'] = '0,0,'. ($maxvalue + 1) .'';
     373            $data['chxp'] = '';
     374            $data['chxs'] = '';
     375            $data['chxtc'] = '';
    373376            $data['chxt'] = 'y,x';
    374             $chbh = 'a,2,0';
     377            $data['chbh'] = 'a,2,0';
    375378            $data['chs'] = '' . esc_attr( $width ) . 'x' . esc_attr( $height ) .'';
    376379            $data['cht'] = 'bvs';   //http://code.google.com/intl/da/apis/chart/docs/gallery/bar_charts.html#bar_types eg. "bvg"
     
    381384            $data['chg'] = '14.3,-1,1,1';
    382385            $data['chls'] = '2,4,0';
     386            $data['chm'] = '';
    383387        break;
    384388
     
    386390            $data['chf'] = 'a,s,000000CD|bg,lg,0,EFEFEF,0,BBBBBB,1|c,lg,0,EFEFEF,0,BBBBBB,1';
    387391            $data['chxl'] = '1:|'. join( '|', $xaxislable ) .'';
     392            $data['chxp'] = '';
    388393            $data['chxr'] = '0,'. ($minvalue -1) .','. ($maxvalue + 1) .'';
     394            $data['chxs'] = '';
     395            $data['chxtc'] = '';
    389396            $data['chxt'] = 'y,x';
     397            $data['chbh'] = '';
    390398            $data['chs'] = '' . esc_attr( $width ) . 'x' . esc_attr( $height ) .'';
    391399            $data['cht'] = 'lc';    //http://code.google.com/intl/da/apis/chart/docs/gallery/line_charts.html
     
    401409        case "pie" :
    402410            $data['chf'] = 'a,s,000000CD|bg,lg,0,EFEFEF,0,BBBBBB,1';
     411            $data['chxl'] = '';
     412            $data['chxp'] = '';
     413            $data['chxr'] = '';
     414            $data['chxs'] = '';
     415            $data['chxtc'] = '';
     416            $data['chxt'] = '';
     417            $data['chbh'] = '';
    403418            $data['chs'] = '' . esc_attr( $width ) . 'x' . esc_attr( $height ) .'';
    404419            $data['cht'] = 'p'; //http://code.google.com/intl/da/apis/chart/docs/gallery/pie_charts.html#chart_types
     
    409424            $data['chl'] = implode("|", $valuepercents); //We need to list the values like
    410425            $data['chdl'] = join( '|', $xaxislable ); //Date like: 31 dec
     426            $data['chg'] = '';
     427            $data['chls'] = '';
     428            $data['chm'] = '';
    411429        break;
    412430       
    413431        case "3dpie" :
    414432            $data['chf'] = 'a,s,000000CD|bg,lg,0,EFEFEF,0,BBBBBB,1';
     433            $data['chxl'] = '';
     434            $data['chxp'] = '';
     435            $data['chxr'] = '';
     436            $data['chxs'] = '';
     437            $data['chxtc'] = '';
     438            $data['chxt'] = '';
     439            $data['chbh'] = '';
    415440            $data['chs'] = '' . esc_attr( $width ) . 'x' . esc_attr( $height ) .'';
    416441            $data['cht'] = 'p3';    //http://code.google.com/intl/da/apis/chart/docs/gallery/pie_charts.html#chart_types
     
    421446            $data['chl'] = implode("|", $valuepercents); //We need to list the values like
    422447            $data['chdl'] = join( '|', $xaxislable ); //Date like: 31 dec
     448            $data['chg'] = '';
     449            $data['chls'] = '';
     450            $data['chm'] = '';
    423451        break;
    424452
Note: See TracChangeset for help on using the changeset viewer.