How to only get date and time in kendo stock chart tooltip -


hai, have configured kendo stock chart.in getting problem tool tip .how customize tool tip date 1/2/2012 3:12:13

function createchart() {             $("#stock-chart").kendostockchart({                 datasource: {                     serverfiltering: true,                     transport: {                         read: {                             url: "http://demos.kendoui.com/service/stockdata",                             datatype: "jsonp"                         },                         parametermap: function(data) {                             return { filter: json.stringify(data.filter) };                         }                     },                     schema: stockdataschema                 },                 title: {                     text: "the acme company"                 },                 datefield: "date",                 series: [{                     type: "column",                     field: "open"                  }],                tooltip: {                 visible: true,                  template: "time:${category} - mode:${value}"          },                 navigator: {                     datasource: {                         transport: {                             read: {                                 url: "http://demos.kendoui.com/service/stockdata",                                 datatype: "jsonp"                             }                         },                         schema: stockdataschema                     },                     series: {                         type: "column",                         field: "high"                     },                     select: {                         from: "2009/02/05",                         to: "2011/10/07"                     }                 }             });         }          $(document).ready(createchart);         $(document).bind("kendo:skinchange", createchart); 

here working js fiddle:http://jsbin.com/ilemel/54/edit

try this,

demo:http://jsbin.com/ilemel/56/edit

tooltip: {                 visible: true,                  template: "time:#= kendo.format('{0:dd/mm/yyyy}',category) # - mode:${value}"          }, 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -