jQWidgets Forums

jQuery UI Widgets Forums Chart path annotation overrides xValue and yValue

This topic contains 5 replies, has 2 voices, and was last updated by  Peter Stoev 9 years, 6 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author

  • lqbweb
    Participant

    Hello,
    If I have a simple path annotation like: “M 0,0 L 10,0 L 10,10 L 0,10 L 0,0” it will not be relative to the xValue and yValue position. Not even the offset specified is granted.

    Basically, I want to place a “cross” on a specific position of a line. Any way?

    Thanks


    Peter Stoev
    Keymaster

    Hi lqbweb,

    To define annotation, see: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxchart/javascript_chart_annotations.htm?arctic and follow the same approach in your Chart’s page.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/


    lqbweb
    Participant

    I know, I am following that example…. What I am reporting you is what I consider a bug.

    Again, it works as expected, except if it is a Path annotation. In the example you tell me it is only a rect annotation.


    Peter Stoev
    Keymaster

    Hi lqbweb,

    It is not a bug or at least not in jQWidgets Chart. When you set it as PATH, your PATH’s points will not be automatically adjusted to the xValue/yValue. So, you have to adjust the path’s points yourself or use the approach from the Chart’s example.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/


    lqbweb
    Participant

    ok, with that example I can not place a “cross” as a symbol.

    Maybe my requirements are a bit unusual, not sure, but in general I had to work a lot with annotations, and I am finding it a bit painful, partially because of the lack of documentation about it.

    My suggestions and improvements for the annotations:

    1) If you have different types of annotations, then the configuration should be in different types of containers. It does not make sense having a parameter “radius” at the same level as “width” or “height”.

    2) An annotation type called “line”, I would expect to have an attribute like “length” or “x1, y1, x2, y2”, but still, it seems that when I apply a “width” to a “line”, it has somehow an effect, indeed, I see a rectangle instead of a line :|. Sorry, this part, I find it very confusing.

    3) If we are meant to use the annotations inside the grid area, why the path annotation works outside this grid area? The design principles sound a bit inconsistent.

    4) all position and size attributes should have some sort of units. ie: xValue=1px would refer to an absolute position, while xValue=1, would just refer to the coordinate where x=1. The same principle should apply for the offsets, width, height, etc. width=50px, would refer to an absolute width of 50 pixels, while width=50, could refer to a width of 50 increments on the “x” axis.

    In general, I find the JqWidgets platform absolutely great. Please take this only in a constructive manner. In the end, our application has complex requirements on charts, and I am very close to fulfill all of them with jqxChart.

    Thanks very much for your support, which I also find it to be great.


    Peter Stoev
    Keymaster

    Hi lqbweb,

    Thank you for the suggestions. We will add work items and will consider them for future releases.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.