Skip to content

Handle zero/negative values in logarithmic scale #348

@kuzmadom

Description

@kuzmadom

Currently, charts with a logarithmic axis break silently or render incorrectly when the data contains zero or negative values. Since a logarithmic scale is mathematically undefined for these values, the current behavior is misleading and can lead to wrong data interpretation.

The library should proactively handle such invalid data. The ideal solution would be to throw a clear validation error during chart initialization, explicitly stating that zero/negative values are incompatible with a log scale.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions