ivelascog / TimeSearcherPlus

MIT License
2 stars 1 forks source link

Invert y axis #17

Closed john-guerra closed 5 months ago

john-guerra commented 5 months ago

For visualizing rankings, we want to be able to invert the y axis

image
john-guerra commented 5 months ago

This could be done using the yScale attribute, but then we should avoid overriding the domain and range when a yScale is provided. e.g.

TimeSearcher(data, {
  x: (d) => d[xVar],
  y: (d) => d.value,
  id: (d) => d.schoolcode,
  yScale: () => d3.scaleLinear().domain([100, 0])
})
ivelascog commented 5 months ago

implemented in #32