Sort data with google Chart

Asked

Viewed 228 times

2

I have the following google chart Chart: https://jsfiddle.net/ektcghyk/

I wanted to sort the left columns as follows: Basic, Below Basic, Proficient and Advanced. Currently it is out of order, there are possibilities of this change ??

1 answer

2


It’s not just you reversing the positions of the Abels ?

['1º ano', 'Básico', 'Abaixo do Básico', 'Proficiente', 'Avançado'],
['2º ano', 'Básico', 'Abaixo do Básico', 'Proficiente', 'Avançado']
  • Diego this data is not fixed.. it comes random from the database. :(

  • 1

    Then you can create a field in the table called order perhaps. And in your SELECT make a order by by this field. And their value would be respectively, 1 - Basic, 2 - Below Basic, 3 - Pro, 4 - Advanced.

  • Got it brother.. I’ll do it !! Thanks man :)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.