Giter VIP home page Giter VIP logo

Comments (9)

martinpernollet avatar martinpernollet commented on May 25, 2024 1

Use Chart2d with Chart2dComponentFactory.

2016-06-08 11:09 GMT+02:00 Hugo [email protected]:

Dear jzy3D team,

I have observed the following issue: when the view is in "2D mode" (both
using ViewPositionMode.FREE or ViewPositionMode.TOP), axes layout is wrong
since labels are overlapped within axes and chart. You can see this effect
in the following image:
[image: 2d-wrong-axes]
https://cloud.githubusercontent.com/assets/3440230/15888858/f3b735ce-2d68-11e6-942e-0492d21349ee.png

However, as you can see in the following two images, when the view is in
"3D mode" (even when it is very close to the "2D/Top" view), labels are
correctly displayed without being overlapped.

[image: 3d-right-axes-2]
https://cloud.githubusercontent.com/assets/3440230/15888859/f3ba17d0-2d68-11e6-95e0-417b84b3c4ee.png
[image: 3d-right-axes]
https://cloud.githubusercontent.com/assets/3440230/15888860/f3bf19f6-2d68-11e6-817a-f81356fd64e6.png

Is there any way to fix it? Can you consider fixing this issue in jzy3d?

Thank you very much for your support.

Regards.

β€”
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#62, or mute the thread
https://github.com/notifications/unsubscribe/ABV7qbT8HaqL5kb0BnSZ3bn2B88FnmNIks5qJobVgaJpZM4Iwv2d
.

from jzy3d-api.

hlfernandez avatar hlfernandez commented on May 25, 2024

Dear Martin,

thank you very much. I have tried it and it looks much better using Chart2d with Chart2dComponentFactory.
2d-1
2d-2
It would look perfect if the X axis tick lines were not overlapping X axis labels, but it looks much better now.

Thank you very much for your support.

Regards.

from jzy3d-api.

hlfernandez avatar hlfernandez commented on May 25, 2024

Dear Martin,

I have detected an issue with Chart2d: it does not respect the image proportions even when setSquared(false) is used.

Here is the result obtained using AWTChartComponentFactory and Chart:
chart3d

And here is the wrong result obtained using Chart2dComponentFactory and Chart2d:
chart2d

In both cases I invoke chart.getView().setSquared(false) after creating the chart.

Is there a way to fix this issue?

Thank you very much.

Regards.

from jzy3d-api.

hlfernandez avatar hlfernandez commented on May 25, 2024

I have just seen that class View2d (the one used by Chart2d) overrides computeSceneScaling() so that it always return squarify(). I think that this must be the reason why setSquared(false) does not have effect on Chart2d.

Do you know any way of having a squared Chart2d?

Thank you very much.

from jzy3d-api.

martinpernollet avatar martinpernollet commented on May 25, 2024

I confirm it is a non desired behavior.
You might try removing the override, or override the override with
overriden impl or wait for a fix but I can t promise any deadline

Le lundi 13 juin 2016, Hugo [email protected] a Γ©crit :

I have just seen that class View2d (the one used by Chart2d) overrides
computeSceneScaling() so that it always return squarify(). I think that
this must be the reason why setSquared(false) does not have effect on
Chart2d.

Do you know any way of having a squared Chart2d?

Thank you very much.

β€”
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#62 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/ABV7qZCldQt3PgrmH61sGSMIwznBKukQks5qLRqtgaJpZM4Iwv2d
.

from jzy3d-api.

hlfernandez avatar hlfernandez commented on May 25, 2024

Thank you very much for your suggestion. Indeed, removing the override is precisely what I tried. This way, the setSquared(false) works and the image is rendered respecting its real dimensions. Finally, to obtain a slightly better layout of the axes I have overriden the drawAxisTicks and layoutHorizontal in AxeBox2d class.

It would be nice if you can fix this in future versions.

Best regards,

Hugo.

from jzy3d-api.

martinpernollet avatar martinpernollet commented on May 25, 2024

Could you kindly perform a pull request so that your improvements will be
merge in future version?

Thank you!

2016-06-14 18:06 GMT+02:00 Hugo [email protected]:

Thank you very much for your suggestion. Indeed, removing the override is
precisely what I tried. This way, the setSquared(false) works and the
image is rendered respecting its real dimensions. Finally, to obtain a
slightly better layout of the axes I have overriden the drawAxisTicks and
layoutHorizontal in AxeBox2d class.

It would be nice if you can fix this in future versions.

Best regards,

Hugo.

β€”
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#62 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/ABV7qf4PhNt58V98VJK6DenOJ3WTEF8uks5qLtGcgaJpZM4Iwv2d
.

from jzy3d-api.

hlfernandez avatar hlfernandez commented on May 25, 2024

I think that our solution is a path that works for our application but further investigation is needed in order to introduce the changes in the official releases. I will investigate a better way to fix this issues and if I found it, I will perform the pull request.

Thank you for your support too.

from jzy3d-api.

jzy3d avatar jzy3d commented on May 25, 2024

Version 2.1.0 now provides much better 2D charts! See the tutorial chart2d package.

from jzy3d-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.