Stock chart Navigator data

9 posts, 0 answers
  1. Ling
    Ling avatar
    18 posts
    Member since:
    Jun 2014

    Posted 08 Dec 2014 Link to this post

    Hi,
    I'm trying to figure out why the bar chart displayed in the navigator clusters together as the data in the chart increases over time. As time progresses, the bars cluster together. I would like them to be bars of 1 minutes intervals and that is the granularity of the data I provide. 

    Secondly, how do I display tooltip to show the bar charts values in the navigator? As you can see, I've enabled tool-tips but nothing shows up.

    Below is how I've configured the stock chart's navigator. The attached screenshot shows how the bar chart looks initially.

    navigator: {
        series: {
            type: "column",
            field: "tradeVolume",
            categoryField: "tradeTime",
            tooltip: {
                visible: true
            },
            color: "#D2E399"
        },
        categoryAxis: {
            baseUnit: "minutes",
            baseUnitStep: "1",
            justified: true,
            labels: {
                visible: true
            }
        }
    },
  2. Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 10 Dec 2014 Link to this post

    Hi Ling,

    1) Unfortunately this is a bug and currently there is no resolutions. We will try to resolve this issue for our future releases.

    2) Tooltip for the navigator pane is not supported.

    Regards,
    Hristo Germanov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Ling
    Ling avatar
    18 posts
    Member since:
    Jun 2014

    Posted 11 Dec 2014 in reply to Hristo Germanov Link to this post

    Hi Hristo,
    1) Do you know how many data points are needed for the bars to start clustering together? Is it a function of the number of data points? As the number of data points increase I start seeing very fat bars whose meaning I'm unable to comprehend.

    2) Is there no way to show the actual values of the data in the navigator pane - let's say I switch from column to area type?
  4. Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 15 Dec 2014 Link to this post

    Hi Ling,

    1) The chart will get the second unit if the current unit has points < 200. Example: if you have 2 years the base unit will be months because 2 years contains 730 days. The stock chart navigator is not flexible because of his complexity. If you want to customize the navigator you need to create chart with two panes and in the second pane you can create selection with the options that you want. In this case you need to handle the events from the navigator and filter the other axes. Link to our examples: http://demos.telerik.com/kendo-ui/chart-api/selection.

    2) The events from the navigator pane will be propagated to the selection. Because of that the navigator series haven't tooltip.

    Regards,
    Hristo Germanov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  5. Ling
    Ling avatar
    18 posts
    Member since:
    Jun 2014

    Posted 15 Dec 2014 in reply to Hristo Germanov Link to this post

    Hristo,
    Is there a technical reason for the 200 points limit? For a stock chart, if it cannot show at least 1 day's worth of data with 1 minute granularity, that isn't very useful (7 hours * 60 mins = 420 data points). If you look at lot of stock charts, you will see this much data. 

    Is this something that can be addressed?

    Thanks
  6. Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 17 Dec 2014 Link to this post

    Hi Ling,

    If you set minutes but your data is from 2 years period you will have too many points and the browser will crash. Because of that we have default configuration.

    The problem is in the navigator and we will try to improve it for our future releases. Please excuse us for the inconvenience that this may cause.

    Regards,
    Hristo Germanov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  7. Ling
    Ling avatar
    18 posts
    Member since:
    Jun 2014

    Posted 18 Dec 2014 in reply to Hristo Germanov Link to this post

    Hi Hristo,
    I understand the scenario you are talking about and developers have to be careful about it. For my specific use case, if I could override the limit to a higher value, that would be neat. Is there a way I can override the default limitation?

    Thanks,
    Gesly
  8. T. Tsonev
    Admin
    T. Tsonev avatar
    2817 posts

    Posted 22 Dec 2014 Link to this post

    Hi,

    The default number of points will depend on the width of the chart. It can be overridden by adjusting the maxDateGroups option:
    $("#chart").kendoStockChart({
      categoryAxis: {
        maxDateGroups: 200
      }
    });


    Problem is, the labels are tied to the points and will overlap each other.
    You can move them to a separate axis as in this snippet.

    I hope this helps.

    Regards,
    T. Tsonev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  9. Ling
    Ling avatar
    18 posts
    Member since:
    Jun 2014

    Posted 13 Jan 2015 in reply to T. Tsonev Link to this post

    Setting the maxDateGroups works for me. Thanks.
Back to Top