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

Missing months in the bar chart when there's no data for them #104

Open
62mkv opened this issue Mar 12, 2019 · 1 comment
Open

Missing months in the bar chart when there's no data for them #104

62mkv opened this issue Mar 12, 2019 · 1 comment
Milestone

Comments

@62mkv
Copy link

62mkv commented Mar 12, 2019

would not it be reasonable to expect, when we use Date dimension as Horizontal dimension for Bar charts, that "empty" months will not be hidden? they're not hidden from our life anyway. at least one would expect to make it configurable as a chart option.

Currently, when using 2.0.3-devel version of cubesviewer-server, I see those periods "gone" from the chart and no visible option to display them as gaps in the horizontal axis

@jjmontesl
Copy link
Owner

Yes. This has been bothering me too for too long too.

When using Cubes with an explicit date dimension table (as opposed of extracting year/month/day from a single DATETIME column), you should be able to tell cubes to do a right join using:

To join a date dimension table so that every date will be present in the output reports, regardless whether there are any facts or not for given date dimension member:

"joins" = [
    {
        "master": "fact_contracts.contract_date_id",
        "detail": "dim_date.id",
        "method": "detail"
     }
]

Read the documentation because it contains some extra information: https://cubes.readthedocs.io/en/latest/backends/sql.html

Now, I'll try to implement this at CubesViewer level too because I'm interested in supporting this even when no table joins are involved (like when using DATETIME columns) or for supporting CSV data directly in CubesViewer. But note that progress in CubesViewer is slow. I'm undergoing a heavy refactor and I have no target date for the next version.

@jjmontesl jjmontesl added this to the 2.1.x milestone Mar 14, 2019
@jjmontesl jjmontesl changed the title missing months in the bar chart when there's no data for them Missing months in the bar chart when there's no data for them Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants