Skip to content

Commit ecb9923

Browse files
authored
Merge pull request #537 from vizzuhq/fix-marker-behaviour-4
Remove hardly visible dimension axis guides between animation steps.
2 parents 9e80091 + 0b443b6 commit ecb9923

File tree

3 files changed

+67
-67
lines changed

3 files changed

+67
-67
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
### Fixed
88

9+
- Remove hardly visible dimension axis guides between animation steps.
910
- Do not calculate disabled markers to the color normalization.
1011
- More precise TS type for transform matrix in event handlers.
1112
- Add missing canvas change function in htmlcanvas plugin.

src/chart/generator/guides.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ bool GuidesByAxis::operator==(const GuidesByAxis &other) const
3333
Guides::Guides(const Options &options)
3434
{
3535
auto isCircle = options.geometry.get() == ShapeType::circle;
36-
auto isLine = options.geometry.get() == ShapeType::line;
3736
auto isHorizontal = options.isHorizontal();
3837
const auto &channelX = options.getChannels().at(ChannelId::x);
3938
const auto &channelY = options.getChannels().at(ChannelId::y);
@@ -53,8 +52,8 @@ Guides::Guides(const Options &options)
5352
y.markerGuides = yOpt.markerGuides.getValue(
5453
isCircle && xIsMeasure && !isPolar);
5554

56-
x.axisGuides = xOpt.guides.getValue(isLine && xIsMeasure);
57-
y.axisGuides = yOpt.guides.getValue(isLine && yIsMeasure);
55+
x.axisGuides = xOpt.guides.getValue(false);
56+
y.axisGuides = yOpt.guides.getValue(false);
5857

5958
x.interlacings = xOpt.interlacing.getValue(
6059
xIsMeasure && !isPolar && (!isHorizontal || !yIsMeasure));

0 commit comments

Comments
 (0)