Bug report #20472

QML Bar Chart y-axis min-max wrong

Added by Simon Gröchenig over 5 years ago. Updated over 5 years ago.

Status:Closed
Priority:Normal
Assignee:David Signer
Category:Forms
Affected QGIS version:3.4.1 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:28292

Description

The minimum and maximum values for the y-axis of the QML bar chart does not work if data-defined values are used. The maximum hard-coded number is used instead. If no hard-coded number is preset, the default extent from -0.5 to 0.5 is shown.

See the attached screenshots (and used dataset)!

info_tool_with_error.PNG - Wrong chart in object attribute form (29.4 KB) Simon Gröchenig, 2018-11-13 08:27 AM

qml_chart_editor.PNG - Chart view in qml widget editor (52.4 KB) Simon Gröchenig, 2018-11-13 08:27 AM

qml_chart_error.csv Magnifier - Dataset to reproduce error (126 Bytes) Simon Gröchenig, 2018-11-13 08:27 AM

Associated revisions

Revision e8416661
Added by David Signer over 5 years ago

use valueAxis in qml example

fixes #20472

History

#1 Updated by Giovanni Manghi over 5 years ago

  • Operating System deleted (Win 7)

#2 Updated by Simon Gröchenig over 5 years ago

  • Assignee set to David Signer

@David, do you (as contributor of this feature) confirm this bug?

#3 Updated by David Signer over 5 years ago

Thanks for reporting. I can confirm the behavior.

#4 Updated by David Signer over 5 years ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

Also available in: Atom PDF