Changeset 343174
- Timestamp:
- 02/09/2011 03:47:56 PM (15 years ago)
- File:
-
- 1 edited
-
runners-log/trunk/runnerslog_gchart.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
runners-log/trunk/runnerslog_gchart.php
r343157 r343174 40 40 ** RELATED TO THE GOOGLE API ** 41 41 ********************************************************************************** 42 $data['chf'] Gradient Fills http://code.google.com/intl/da/apis/chart/docs/chart_params.html#gcharts_gradient_fills42 $data['chf'] Gradient Fills http://code.google.com/intl/da/apis/chart/docs/chart_params.html#gcharts_gradient_fills 43 43 $data['chxl'] Custom Axis Labels http://code.google.com/intl/da/apis/chart/docs/chart_params.html#axis_labels 44 44 $data['chxr'] Axis Range http://code.google.com/intl/da/apis/chart/docs/chart_params.html#axis_range 45 $ chxpAxis Label Positions http://code.google.com/intl/da/apis/chart/docs/chart_params.html#axis_label_positions46 $ chxsAxis Label Styles http://code.google.com/intl/da/apis/chart/docs/chart_params.html#axis_label_styles47 $ chxtcAxis Tick Mark Styles http://code.google.com/intl/da/apis/chart/docs/chart_params.html#axis_tick_marks45 $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 48 48 $data['chxt'] Visible Axes http://code.google.com/intl/da/apis/chart/docs/chart_params.html#axis_type 49 $ chbhBar Width and Spacing http://code.google.com/intl/da/apis/chart/docs/gallery/bar_charts.html#chbh50 $data['chs'] Chart Size http://code.google.com/intl/da/apis/chart/docs/chart_params.html#gcharts_chs51 $data['cht'] Chart Type http://code.google.com/intl/da/apis/chart/docs/chart_params.html#gcharts_cht49 $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 52 52 $data['chco'] Series Colors http://code.google.com/intl/da/apis/chart/docs/chart_params.html#gcharts_series_color 53 53 $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.html54 $data['chd'] Chart Data String http://code.google.com/intl/da/apis/chart/docs/data_formats.html 55 55 $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 pie56 $data['chl'] Chart Legend Text, when it is a pie 57 57 $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_lines59 $data['chls'] Line Styles http://code.google.com/intl/da/apis/chart/docs/chart_params.html#gcharts_line_styles58 $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 60 60 $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_title61 $data['chtt'] Chart Title http://code.google.com/intl/da/apis/chart/docs/chart_params.html#gcharts_chart_title 62 62 63 63 ********************************************************************************** … … 370 370 $data['chf'] = 'a,s,000000CD|bg,lg,0,EFEFEF,0,BBBBBB,1|c,lg,0,EFEFEF,0,BBBBBB,1'; 371 371 $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'] = ''; 373 376 $data['chxt'] = 'y,x'; 374 $ chbh= 'a,2,0';377 $data['chbh'] = 'a,2,0'; 375 378 $data['chs'] = '' . esc_attr( $width ) . 'x' . esc_attr( $height ) .''; 376 379 $data['cht'] = 'bvs'; //http://code.google.com/intl/da/apis/chart/docs/gallery/bar_charts.html#bar_types eg. "bvg" … … 381 384 $data['chg'] = '14.3,-1,1,1'; 382 385 $data['chls'] = '2,4,0'; 386 $data['chm'] = ''; 383 387 break; 384 388 … … 386 390 $data['chf'] = 'a,s,000000CD|bg,lg,0,EFEFEF,0,BBBBBB,1|c,lg,0,EFEFEF,0,BBBBBB,1'; 387 391 $data['chxl'] = '1:|'. join( '|', $xaxislable ) .''; 392 $data['chxp'] = ''; 388 393 $data['chxr'] = '0,'. ($minvalue -1) .','. ($maxvalue + 1) .''; 394 $data['chxs'] = ''; 395 $data['chxtc'] = ''; 389 396 $data['chxt'] = 'y,x'; 397 $data['chbh'] = ''; 390 398 $data['chs'] = '' . esc_attr( $width ) . 'x' . esc_attr( $height ) .''; 391 399 $data['cht'] = 'lc'; //http://code.google.com/intl/da/apis/chart/docs/gallery/line_charts.html … … 401 409 case "pie" : 402 410 $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'] = ''; 403 418 $data['chs'] = '' . esc_attr( $width ) . 'x' . esc_attr( $height ) .''; 404 419 $data['cht'] = 'p'; //http://code.google.com/intl/da/apis/chart/docs/gallery/pie_charts.html#chart_types … … 409 424 $data['chl'] = implode("|", $valuepercents); //We need to list the values like 410 425 $data['chdl'] = join( '|', $xaxislable ); //Date like: 31 dec 426 $data['chg'] = ''; 427 $data['chls'] = ''; 428 $data['chm'] = ''; 411 429 break; 412 430 413 431 case "3dpie" : 414 432 $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'] = ''; 415 440 $data['chs'] = '' . esc_attr( $width ) . 'x' . esc_attr( $height ) .''; 416 441 $data['cht'] = 'p3'; //http://code.google.com/intl/da/apis/chart/docs/gallery/pie_charts.html#chart_types … … 421 446 $data['chl'] = implode("|", $valuepercents); //We need to list the values like 422 447 $data['chdl'] = join( '|', $xaxislable ); //Date like: 31 dec 448 $data['chg'] = ''; 449 $data['chls'] = ''; 450 $data['chm'] = ''; 423 451 break; 424 452
Note: See TracChangeset
for help on using the changeset viewer.