Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Gaps in axis range #266

Closed
osaidmakhalfeh opened this issue Sep 26, 2020 · 2 comments
Closed

Gaps in axis range #266

osaidmakhalfeh opened this issue Sep 26, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@osaidmakhalfeh
Copy link

osaidmakhalfeh commented Sep 26, 2020

Hello Dears,

I'm very happy while using and contributing to this library, thank you all.

I'm working on an application that reads data from a hardware sensor and re-fill the data as bar charts every two seconds. I have two problems and want to discuss it with you:

  1. sometimes some bars not rendered!, I'm not sure why?, to be sure with that point I entered the same data array by code "static code" and unfortunately I'm getting the same result which is-> the chart does not render all bars.
    here is my snapshot of the result and its input:
    bugHugeRane4
    As you see here, I should get 17 bars instead of 14!

  2. Because i have a good range between yValues. I'm not sure if I can jump the yAxis values to make the user feel that s/he can compare between bars easily!
    I tried to simulate my expected result as you see on the following image (on the right), do not know if someone has an idea!
    bugHugeRane1

@osaidmakhalfeh
Copy link
Author

osaidmakhalfeh commented Sep 28, 2020

@RalphSteinhagen
I'm very thankful to you for your helping.

I saw your reply on this issue:
#265

Surely you and I notice that this is the same problem, I tried the solution you gave to me before,
"ErrorDataSetRenderer::setPointReduction(boolean)"

but unfortunately, I'm getting the same result 3 of bars get drawn only!
I tried to put fake data, like "dataSet_Default.add(21, 0);", and that solves the issue, bar number 4 got drawn, but at the running time there will be new data set, so my dummy data will not work!

this is a snapshot of my test:
xxx

A lot of thanks

@wirew0rm wirew0rm changed the title Can not draw the barChart data easily, some of it missing?! Gaps in axis range Sep 29, 2020
@wirew0rm wirew0rm added the enhancement New feature or request label Sep 29, 2020
@wirew0rm
Copy link
Member

wirew0rm commented Sep 29, 2020

hey @osaidmakhalfeh,

for future issue reports, please try not to mix multiple topics into one issue, as it makes it a lot harder to follow and manage the disucussion.
I will only answer the second question on this issue, as you already said that the other one is closely related to #265, and should be further discussed there. I also changed the title of the issue to reflect this.

The feature you want to use is currently not implemented in chartfx. You would need to implement your own Axis, which can define arbitrary ticks and coordinate transforms, and also implement the visualization of the axis gap. I suggest to look at LinearAxis or DefaultNumericAxis.

You would also have to come up with a way to either supply the ranges of the axis gaps to the plot or to determine them automatically (computationally expensive, axes usually do not have access to the dataset).

Alternatively think about other ways of displaying your data (logarithmic plot or apply some normalisation before).

I'll keep this issue open in case you want to give it a try and implement this and have further questions

@fair-acc fair-acc locked and limited conversation to collaborators Apr 15, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants