Hello, I need to create a standings to show the position of soccer teams by each game.

Now I have a chart with the position on each day:

 $chart = array(
      '#chart_id' => 'classificacio',
      '#type' => CHART_TYPE_LINE,
      '#size' => chart_size(430, 250),
      '#adjust_resolution' => TRUE,
    );
 for ($i = 1; $i <= $jornadaactual; $i++){
 	$chart['#data']['fruits'][] = polnetworkmodule_classificacio_equip_jornada($grup,$temporada_actual,$i,$nid,$grup);
 	$chart['#labels'][] = $i;//' '.polnetworkmodule_classificacio_equip_jornada($grup,$temporada_actual,$i,$nid,$grup).'pt.';
 	$chart['#mixed_axis_labels'][CHART_AXIS_X_BOTTOM][1][] = 'text';
 	$chart['#mixed_axis_labels'][CHART_AXIS_X_BOTTOM][2][] = chart_mixed_axis_label(polnetworkmodule_classificacio_equip_jornada($grup,$temporada_actual,$i,$nid,$grup). ' pos.', 0);
 }
  echo chart_render($chart);

What I need is to show lower values (it's a position 1st should be the top) and to display the position value inside the chart.
Any idea of how to do that?

Thank's for all your work!

Comments

Pierre.Vriens’s picture

Issue summary: View changes
Parent issue: » #2369883: Create chart documentation
avpaderno’s picture

Version: 6.x-1.2 » 6.x-1.x-dev
Status: Active » Closed (outdated)

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