Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LinearAxis CategoryOrder not working as expected #450

Open
kunjiangkun opened this issue Apr 5, 2024 · 3 comments
Open

LinearAxis CategoryOrder not working as expected #450

kunjiangkun opened this issue Apr 5, 2024 · 3 comments
Labels
Status: Needs Repro This issue needs reproducible code

Comments

@kunjiangkun
Copy link

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
@kMutagene kMutagene added the Status: Needs Repro This issue needs reproducible code label Apr 9, 2024
@kMutagene
Copy link
Collaborator

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

@kunjiangkun
Copy link
Author

kunjiangkun commented Apr 9, 2024

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);

@kMutagene
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Repro This issue needs reproducible code
Projects
None yet
Development

No branches or pull requests

2 participants