Plotly.NET icon indicating copy to clipboard operation
Plotly.NET copied to clipboard

LinearAxis CategoryOrder not working as expected

Open kunjiangkun opened this issue 1 year ago • 3 comments

Description

Setting CategoryOrder seems has no effect when there are multiple categories: xAxis.SetValue("categoryorder", "category ascending");

  • Operating system
  • Branch
  • .NET Framework 4.8
  • plotly.js : 2.30.1

kunjiangkun avatar Apr 05 '24 15:04 kunjiangkun

Hey @kunjiangkun can you please attach a code snippet that reproduces the issue? Otherwise it is hard to pin down such issues

kMutagene avatar Apr 09 '24 08:04 kMutagene

var xAxis = LinearAxis.init<IConvertible, IConvertible, IConvertible, IConvertible, IConvertible, IConvertible>( Title: xTitle, ZeroLine: false, AutoMargin: TickAutoMargin.All); xAxis.SetValue("categoryorder", "category ascending");

// Scatter Combined var scatterCombined = (scatterList.Any() ? Chart.Combine(scatterList) : Chart.Invisible()) .WithUpdateMenu(LineStyleMenu) .WithTitle(chartTitle, TitleFont: Font.init(Size: titleFontSize)) .WithXAxis(xAxis) .WithLayout(plotLayout) .WithSize(plotWidth, plotHeight);

kunjiangkun avatar Apr 09 '24 15:04 kunjiangkun

Sorry but without the actual data that is in those plots it is still not possible for me to help here

kMutagene avatar Apr 16 '24 14:04 kMutagene