You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following diagram has categories on both, the x-axis and the y-axis.
92
+
93
+
It visualizes the amount of cake (y-axis) consumed on the specific day of week (x-axis). As can be seen in the diagram, the amount of cake rises from Monday to Sunday.
94
+
95
+
.. image:: HeatMapSeries_categorized.png
96
+
34
97
.. sourcecode:: csharp
35
98
36
-
var model = new PlotModel { Title = "HeatMapSeries" };
99
+
using OxyPlot;
100
+
using OxyPlot.Axes;
101
+
using OxyPlot.Series;
102
+
103
+
namespace ExampleLibrary
104
+
{
105
+
106
+
public class LinearHeatMapViewModel
107
+
{
108
+
private PlotModel modelP1;
109
+
public LinearHeatMapViewModel()
110
+
{
111
+
modelP1 = new PlotModel { Title = "Cakes per Weekday" };
112
+
113
+
//WeekDay-Axis (Bottom)
114
+
modelP1.Axes.Add(new CategoryAxis
115
+
{
116
+
Position = AxisPosition.Bottom,
117
+
//Key used for specifying this axis in the HeatMapSeries
118
+
Key = "WeekDayAxis",
119
+
//Property of the items in ItemSource that should be used as title
120
+
LabelField = "Title",
121
+
//Array of Categories (see above), mapped to one of the coordinates of the 2D-data array
0 commit comments