Scale valueAxis line chart

3 posts, 0 answers
  1. Roger
    Roger avatar
    2 posts
    Member since:
    Feb 2015

    Posted 03 Feb Link to this post

    Hello, I'm looking to find out if it's possible to scale the valueAxis on a line chart? The attached image is a silverlight chart that we are replacing with the kendo ui mvc chart. We would like it to look somewhat the same. I was able to step the years to the exact same as the silverlight chart. But can not achieve the value in the image. Any help would be much appreciated?

    data":[{"Year":1965,"Index":"1712","Payout":"0"},{"Year":1966,"Index":"1590","Payout"
    :"0"},{"Year":1967,"Index":"1789","Payout":"0"},{"Year":1968,"Index":"1677.5","Payout":"0"},{"Year":1969
    ,"Index":"1692.5","Payout":"0"},{"Year":1970,"Index":"1681.5","Payout":"0"},{"Year":1971,"Index":"1631"
    ,"Payout":"0"},{"Year":1972,"Index":"1645.5","Payout":"0"},{"Year":1973,"Index":"1618.5","Payout":"0"
    },{"Year":1974,"Index":"1673","Payout":"0"},{"Year":1975,"Index":"1633","Payout":"0"},{"Year":1976,"Index"
    :"1725","Payout":"0"},{"Year":1977,"Index":"1771.5","Payout":"0"},{"Year":1978,"Index":"1709.5","Payout"
    :"0"},{"Year":1979,"Index":"1690.5","Payout":"0"},{"Year":1980,"Index":"1651.5","Payout":"0"},{"Year"
    :1981,"Index":"1773.5","Payout":"0"},{"Year":1982,"Index":"1567.5","Payout":"0"},{"Year":1983,"Index"
    :"1511","Payout":"0"},{"Year":1984,"Index":"1573","Payout":"0"},{"Year":1985,"Index":"1762.5","Payout"
    :"0"},{"Year":1986,"Index":"1791","Payout":"0"},{"Year":1987,"Index":"1584","Payout":"0"},{"Year":1988
    ,"Index":"1666","Payout":"0"},{"Year":1989,"Index":"1679","Payout":"0"},{"Year":1990,"Index":"1663.5"
    ,"Payout":"0"},{"Year":1991,"Index":"1743.5","Payout":"0"},{"Year":1992,"Index":"1611.5","Payout":"0"
    },{"Year":1993,"Index":"1562","Payout":"0"},{"Year":1994,"Index":"1731","Payout":"0"},{"Year":1995,"Index"
    :"1686","Payout":"0"},{"Year":1996,"Index":"1628","Payout":"0"},{"Year":1997,"Index":"1559","Payout"
    :"0"},{"Year":1998,"Index":"1681","Payout":"0"},{"Year":1999,"Index":"1714.5","Payout":"0"},{"Year":2000
    ,"Index":"1644.5","Payout":"0"},{"Year":2001,"Index":"1781","Payout":"0"},{"Year":2002,"Index":"1796
    .5","Payout":"0"},{"Year":2003,"Index":"1673","Payout":"0"},{"Year":2004,"Index":"1677","Payout":"0"
    },{"Year":2005,"Index":"1642.5","Payout":"0"},{"Year":2006,"Index":"1822.5","Payout":"0"},{"Year":2007
    ,"Index":"1666","Payout":"0"},{"Year":2008,"Index":"1679","Payout":"0"},{"Year":2009,"Index":"1688","Payout"
    :"0"},{"Year":2010,"Index":"1793.5","Payout":"0"},{"Year":2011,"Index":"1789.5","Payout":"0"},{"Year"
    :2012,"Index":"1767","Payout":"0"},{"Year":2013,"Index":"1690.5","Payout":"0"},{"Year":2014,"Index":"1707
    .5","Payout":"0"},{"Year":2015,"Index":"1732.5","Payout":"0"}]}

     

  2. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1494 posts

    Posted 04 Feb Link to this post

    Hi Roger,

    You can use a scatter chart -  http://demos.telerik.com/kendo-ui/scatter-charts/index. You can also configure the step of the yaxis, for example to 100. I see, however, that the values in the data are represented as strings. I would suggest that you remove the quotes, so that they can be properly read as numbers.

    Regards,
    Danail Vasilev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Roger
    Roger avatar
    2 posts
    Member since:
    Feb 2015

    Posted 04 Feb in reply to Danail Vasilev Link to this post

    Thanks for the reply. I will take look at the scatter chart and see if that will fit our needs. And see if changing the values to numbers helps out at all.

    Thanks

Back to Top