You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An ordinal scale would be a useful feature. I think d3 already has this?
The ordinal type allows for rank order (1st, 2nd, 3rd, etc.) by which data can be sorted, but still does not allow for relative degree of difference between them. Examples include, on one hand, dichotomous data with dichotomous (or dichotomized) values such as 'sick' vs. 'healthy' when measuring health, 'guilty' vs. 'innocent' when making judgments in courts, 'wrong/false' vs. 'right/true' when measuring truth value, and, on the other hand, non-dichotomous data consisting of a spectrum of values, such as 'completely agree', 'mostly agree', 'mostly disagree', 'completely disagree' when measuring opinion.
My current use case is plotting financial data which should only accept Monday through Friday as valid x-scale values. Saturdays and Sundays should not effect the x-scale. Currently however a line will be drawn between Friday and Monday of two-day length compensation for the 'missing' data on Saturday and Sunday.
Thoughts?
The text was updated successfully, but these errors were encountered:
I can think of a bunch of ways to do this. From my understanding, the ordinal scale is very similar to our category scale (the default x scale). With some finessing the options, this will work on a Y axis.
I'll see if I can think of a nice way to do this without having to build a brand new scale.
I believe this is now resolved. I checked with v3.0.0-beta.3 and labels can be specified on the axis, rather than in the data object itself. https://jsfiddle.net/ka28u7Lz/
An ordinal scale would be a useful feature. I think d3 already has this?
My current use case is plotting financial data which should only accept Monday through Friday as valid x-scale values. Saturdays and Sundays should not effect the x-scale. Currently however a line will be drawn between Friday and Monday of two-day length compensation for the 'missing' data on Saturday and Sunday.
Thoughts?
The text was updated successfully, but these errors were encountered: