Skip to content

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

@kMutagene

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions