Skip to content

Commit

Permalink
Axis
Browse files Browse the repository at this point in the history
  • Loading branch information
artemiusgreat committed Feb 17, 2024
1 parent 0b699b3 commit 526ce79
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Canvas.Core/Canvas.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>disable</Nullable>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Version>1.9.5</Version>
<Version>1.9.6</Version>
<Description>Internal package used in Canvas.Views.Web</Description>
<Authors>artemiusgreat</Authors>
<Copyright>indemos.com</Copyright>
Expand Down
4 changes: 2 additions & 2 deletions Canvas.Core/Composers/MapComposer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ protected override IList<MarkerModel> GetIndices()
var maxIndex = Domain.MaxIndex;
var range = maxIndex - minIndex + 0.0;
var stepSize = View.Engine.X / Items.Count;
var step = Math.Round(range / Math.Min(IndexCount, range), MidpointRounding.ToZero);
var step = Math.Round(range / Math.Min(IndexCount, range), MidpointRounding.ToEven);
var items = new List<MarkerModel>();

void createItem(double i)
Expand Down Expand Up @@ -54,7 +54,7 @@ protected override IList<MarkerModel> GetValues()
var maxValue = Domain.MaxValue;
var pointsCount = Items.Max(o => (o as ColorMapShape).Points.Count + 0.0);
var stepSize = View.Engine.Y / pointsCount;
var step = Math.Round(pointsCount / Math.Min(ValueCount, pointsCount), MidpointRounding.ToZero);
var step = Math.Round(pointsCount / Math.Min(ValueCount, pointsCount), MidpointRounding.ToEven);
var items = new List<MarkerModel>();

void createItem(double i)
Expand Down
2 changes: 1 addition & 1 deletion Canvas.Views.Web/Canvas.Views.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<PropertyGroup>
<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Version>1.9.5</Version>
<Version>1.9.6</Version>
<PackageTags>finance chart opengl canvas trading gdi stock direct2d</PackageTags>
<Authors>artemiusgreat</Authors>
<Copyright>indemos.com</Copyright>
Expand Down
2 changes: 1 addition & 1 deletion Samples/Pages/Heatmap.razor
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
Items = points,
View = View,
IndexCount = indexLabels.Length,
ValueCount = 3,
ValueCount = 6,
ShowIndex = i => indexLabels.ElementAtOrDefault((int)i),
ShowValue = i => valueLabels.ElementAtOrDefault((int)i)
};
Expand Down

0 comments on commit 526ce79

Please sign in to comment.