Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple chart fixes #166

Merged
merged 8 commits into from Jan 17, 2013
Merged

Multiple chart fixes #166

merged 8 commits into from Jan 17, 2013

Conversation

nurkiewicz
Copy link
Contributor

Incorrect output when multiple header columns

If more then one level or hierarchy is used for columns, chart output is incorrect. Turns out only the first row of top-level hierarchy was visible. Take the following report on Sales cube as an example:

report

Before:

Only Q1 is shown.

before

After:

All rows are shown:

after

Looks like the same bug (if it works as expected, it's waaay to confusing) is present when multiple header rows are selected, but I didn't manage to fix it.

[NN] counter optional

Previously every label on X-axis had a counter, e.g. "Virginia [1] | Oregon [2], ... Now it's added only if there are duplicated labels on the chart.

Stacked bar empty when some data unavailable

Sometimes when some cells in report are empty, stacked bar doesn't display anything. It's fixed by implicitly placing 0 in such cells.

For example in Sales cube put Month in columns and City (from Customer dimension). Stacked bar is invisible without this fix.

More colors

Increased the number of distinct colors from 5 to 11 (based on default jqPlot pallet).

pstoellberger added a commit that referenced this pull request Jan 17, 2013
@pstoellberger pstoellberger merged commit af3e316 into OSBI:master Jan 17, 2013
@pstoellberger
Copy link
Collaborator

there still is an issue if you have several items on the columns axis, can you fix that as well?

thanks for the pull request!

@pstoellberger
Copy link
Collaborator

and as i said in the other pull request, doing both in 1 pass would be great if possible

@nurkiewicz
Copy link
Contributor Author

I was aware of the problem with multiple items in columns. But since it wasn't an issue in my project, I left it. I already feel I might have introduced some new subtle bugs, so I am a bit worried and reluctant to work on that code further before it stabilizes and proves to be correct.

I'll try to get rid of the second iteration/pass though.

@pstoellberger
Copy link
Collaborator

once you got rid of the second iteration i can take a look as well, i think it can be an easy fix to do it for the columns as well

what bugs are you referring to though?

@nurkiewicz
Copy link
Contributor Author

No bugs in particular, I tested my changes manually with several charts on demo and my own cubes and they all seem to work. So I hope everything is in better shape than it used to be.

@nurkiewicz nurkiewicz deleted the chart-fixes branch January 17, 2013 18:21
@pstoellberger
Copy link
Collaborator

i have made the row label a one-pass algorithm and also implemented the fix for the column labels

would be great if you could check out the latest version and give feedback!
thanks for pushing this. i wanted to do that for ages

@nurkiewicz
Copy link
Contributor Author

Thank you for fixing column labels. I confirm, now chart works properly when multiple dimensions are applied on rows (my fix) and column (yours). Thanks again!

@pstoellberger
Copy link
Collaborator

btw i noticed that your chart export doesnt work in chrome for some reason

@nurkiewicz
Copy link
Contributor Author

Indeed, sorry for that. I mentioned about it in original pull request. Unfortunately I couldn't find where the problem lies :-(.

@pstoellberger
Copy link
Collaborator

ah didnt see that. no worries, i will take a look

@pstoellberger
Copy link
Collaborator

if you can have a look whats wrong with the pdf export that would be great ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants