Search code examples
angularjsd3.jsnvd3.jsangular-nvd3

Angular NVD3 inverse Focus bar ticks display order


is there a way to set a domain for the focus xAxis in Angular NVD3? in fact I updated the xDomain for the principal chart to inverse the order but for the focus bar are still not in the same order. any suggestion? here is a plnker for details. I tried also x2Domain:[364,3] but it's not working


Solution

  • You can do that using Ticks and use the inverse order. In fact numbers will be automatically sorted and displayed in only one way but using ticks you can display them in the order that you want.