Skip to content

Add possibility to invert y axis directly on Chart.Heatmap #96

Description

@kMutagene

Description

Heatmaps are often read from top to bottom, but the default y axis starts with 0 at the bottom.

It can be changed like this:

Chart.Heatmap(data,Colorscale=StyleParam.Colorscale.Electric)
|> Chart.withY_Axis(
	Axis.LinearAxis.init(Autorange=StyleParam.AutoRange.Reversed)
)

As this is quite common thoughl, i would like to add a ReverseYAxis parameter to all Chart.Heatmap functions, so i can simply do

Chart.Heatmap(data,Colorscale=StyleParam.Colorscale.Electric,ReverseYAxis=true)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      Sponsor
      SponsoredKunjungi sekarang
      Promo