Skip to content

Diagrams: histograms with only negative values don't render #63980

@andreasneumann

Description

@andreasneumann

What is the bug or the crash?

When using histograms (diagrams), the bars do not render when there are only negative values defining the bars.

In the given project, in layer "beventwickl_szen_diag_tief_szen_bevtotal_endejahr_2055" the histograms for points with ids 14 (Schaffhausen) and 24 (Neuchâtel) do not render because they have only negative values.

I would expect all histograms to render correctly, regardless if there are only positive, only negative or mixed numbers.

diagram_issue_negative_values.zip

Steps to reproduce the issue

  1. open the project
  2. open the layer properties of layer "beventwickl_szen_diag_tief_szen_bevtotal_endejahr_2055" to check the diagram (histogram) settings
  3. check the rendering: note that two points (with ids 14 and 24) show no histograms
Image

The values for the histogram (ids 14 and 24) only contain negative values:

Image

Versions

QGIS version3.44.4-Solothurn
QGIS code revision108203c541e
 
Libraries
Qt version5.15.13
Python version3.12.11 (Compiled)
3.12.12 (Running)
GDAL version3.11.4 (Compiled)
3.11.5 (Running) — Eganville
PROJ version9.7.0
EPSG Registry database versionv12.022 (2025-08-30)
GEOS version3.13.1-CAPI-1.19.2
SQLite version3.50.4
PDAL version2.9.0
PostgreSQL client version17.3
SpatiaLite version5.1.0
QWT version6.3.0
QScintilla2 version2.14.1
OS versionWindows 11 Version 2009
 
Active Python plugins
linking_relation_editorv1.4.0
quick_map_services0.21.4
swiss_locator4.0.1
db_manager0.1.20
grassprovider2.12.99
processing2.12.99
aps-editor3.5.3

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugEither a bug report, or a bug fix. Let's hope for the latter!Diagrams

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions