ui/plugins/cubism/cubism.v1.js
function cubism_graphiteParse(text) {
  var i = text.indexOf("|"),
      meta = text.substring(0, i),
      c = meta.lastIndexOf(","),
      b = meta.lastIndexOf(",", c - 1),
      a = meta.lastIndexOf(",", b - 1),
      start = meta.substring(a + 1, b) * 1000,
      step = meta.substring(c + 1) * 1000;
  return text
      .substring(i + 1)
      .split(",")
      .slice(1) // the first value is always None?
      .map(function(d) { return +d; });
}
function cubism_graphiteParse(text) {
  var i = text.indexOf("|"),
      meta = text.substring(0, i),
      c = meta.lastIndexOf(","),
      b = meta.lastIndexOf(",", c - 1),
      a = meta.lastIndexOf(",", b - 1),
      start = meta.substring(a + 1, b) * 1000,
      step = meta.substring(c + 1) * 1000;
  return text
      .substring(i + 1)
      .split(",")
      .slice(1) // the first value is always None?
      .map(function(d) { return +d; });
}
function cubism_graphiteParse ( text ) { var i = text . indexOf ( "|" ) , meta = text . substring ( 0 , i ) , c = meta . lastIndexOf ( "," ) , b = meta . lastIndexOf ( "," , c - 1 ) , a = meta . lastIndexOf ( "," , b - 1 ) , start = meta . substring ( a + 1 , b ) * 1000 , step = meta . substring ( c + 1 ) * 1000 ; return text . substring ( i + 1 ) . split ( "," ) . slice ( 1 ) // the first value is always None? . map ( function ( d ) { return + d ; } ) ; }
Helper method for parsing graphite's raw format.
Helper method for parsing graphite s raw format .