Bug report #20479
Natural breaks (Jenks) classes not computed correctly from expression
|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 #:||28299|
QGIS doesn't compute the classes using Natural Breaks (Jenks) correctly. The first class only has one value and the subsequent classes are wrong.
Here are the classes as they should be computed:
Here are the classes that QGIS computes:
Note that the first class is value - same value. Also affects v3.2.3.