Project

General

Profile

Actions

Bug #2042

closed

Invalid coloring of bars in 3D bar charts

Added by Jan Goyvaerts over 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
-
Target version:
Start date:
07/16/2013
Due date:
% Done:

0%

Estimated time:

Description

Setting the bar color with the role MarkerBrushColorRole does not always show in the chart.

  • @Override
    public Object getData(final WModelIndex index, final int role) {
    final int count = grid[index.getColumn()][index.getRow()];
    switch(role) {
    case ItemDataRole.DisplayRole:
    return count;
    case ItemDataRole.MarkerBrushColorRole:
    return count == 0 ? WColor.white : WColor.blue;
    default:
    return null;
    }
    }*

The code sample above makes sure the same grid/column cell is used for both the data and the color. Zero is white and anything else is blue. Check the screenshot - the "back rows" fall under the rule of zero. While the bars clearly show the data is not zero.


Files

invalid_color.png (68.7 KB) invalid_color.png The bars in the back should be blue. Jan Goyvaerts, 07/16/2013 01:46 PM
Actions #1

Updated by Korneel Dumon over 11 years ago

  • Status changed from New to Resolved
Actions #2

Updated by Jan Goyvaerts over 11 years ago

Confirming it works.

Actions #3

Updated by Korneel Dumon over 11 years ago

  • Assignee set to Korneel Dumon
Actions #4

Updated by Koen Deforche about 11 years ago

  • Target version set to 3.3.2
Actions #5

Updated by Koen Deforche about 11 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF