[Feature] Add inactiveColor, inactiveBorderColor, and inactiveBorderWidth to visualMap #20848
Labels
en
This issue is in English
new-feature
pending
We are not sure about whether this is a bug/new feature.
What problem does this feature solve?
Currently,
visualMap
does not provide built-in options to customize the appearance of inactive (unselected) elements in eitherpiecewise
orcontinuous
modes. This limitation reduces visual clarity when certain values are deselected, making it difficult to distinguish active and inactive states effectively.In contrast, the
legend
component already supports customization of inactive elements usinginactiveColor
,inactiveBorderColor
, andinactiveBorderWidth
. However,visualMap
lacks these options, leading to inconsistencies when both components are used in the same chart.For example, when using
visualMap.piecewise
, unselected categories always appear in a default style that cannot be modified. Similarly, invisualMap.continuous
, there is no way to adjust the appearance of unselected ranges, making it harder to visually communicate inactive states.Adding
inactiveColor
,inactiveBorderColor
, andinactiveBorderWidth
would allow users to fully control the appearance of inactive elements in both modes, improving chart customization and usability.What does the proposed API look like?
The proposed API would introduce three new properties under
visualMap
that apply to bothpiecewise
and continuous modes:This enhancement would ensure visual consistency between
visualMap
and the legend, allowing for better differentiation of inactive states in bothpiecewise
andcontinuous
visualizations.The text was updated successfully, but these errors were encountered: