The Open Standard for Generative UI
@use "../../../cssUtils" as cssUtils;
@use "../shared/cartesian/chartBase" as base;
@use "../prefix" as brand;
@include base.centered-container("scatter-chart");
.#{brand.$prefix}-scatter-chart-grid line {
stroke: cssUtils.$border-default;
stroke-dasharray: 3 3;
}
.#{brand.$prefix}-scatter-chart-grid line.#{brand.$prefix}-grid-zero-line {
stroke-dasharray: none;
}
.#{brand.$prefix}-scatter-chart-grid-vertical line {
stroke: cssUtils.$border-default;
stroke-dasharray: 3 3;
}
.#{brand.$prefix}-scatter-chart-y-tick {
@include base.svg-tick-label;
}
.#{brand.$prefix}-scatter-chart-x-tick {
@include base.svg-tick-label;
}
.#{brand.$prefix}-scatter-chart-dot {
stroke: cssUtils.$foreground;
stroke-width: 1.5;
transition:
r 0.15s ease,
fill-opacity 0.15s ease,
stroke-opacity 0.15s ease;
}
// Entrances are decorative: gate the whole rule (pre-state included) behind
// reduced-motion so users who opt out get the natural static state immediately
// — gating only the animation would strand elements at the opacity: 0 start.
@media (prefers-reduced-motion: no-preference) {
.#{brand.$prefix}-scatter-chart-dot--animated {
opacity: 0;
animation: #{brand.$prefix}-scatter-dot-appear 0.4s ease-out forwards;
}
}
@keyframes #{brand.$prefix}-scatter-dot-appear {
from {
opacity: 0;
r: 0;
}
to {
opacity: 1;
}
}