Browse Source

Use desc as the default of data.order

pull/452/head
Masayuki Tanaka 11 years ago
parent
commit
c7288d8401
  1. 2
      c3.js
  2. 2
      c3.min.js
  3. 2
      htdocs/samples/chart_donut.html

2
c3.js

@ -153,7 +153,7 @@
__data_type = getConfig(['data', 'type']),
__data_types = getConfig(['data', 'types'], {}),
__data_labels = getConfig(['data', 'labels'], {}),
__data_order = getConfig(['data', 'order']),
__data_order = getConfig(['data', 'order'], 'desc'),
__data_regions = getConfig(['data', 'regions'], {}),
__data_color = getConfig(['data', 'color']),
__data_colors = getConfig(['data', 'colors'], {}),

2
c3.min.js vendored

File diff suppressed because one or more lines are too long

2
htdocs/samples/chart_donut.html

@ -22,7 +22,7 @@
onmouseover: function (d, i) { console.log("onmouseover", d, i, this); },
onmouseout: function (d, i) { console.log("onmouseout", d, i, this); },
onclick: function (d, i) { console.log("onclick", d, i, this); },
order: null // set null to disable sort of data.
order: null // set null to disable sort of data. desc is the default.
},
axis: {
x: {

Loading…
Cancel
Save