Can we put x values in for Sparkline Charts

(2 posts) (2 voices)
  1. mleary2001, Member

    If I have the following code from the myDBR examples, how can I put some x-values on the x-axis, and y-values on the y-axis?

    Thanks in advance,

    Mike

    DROP PROCEDURE IF EXISTS sp_DBR_rpm_sparkline_chart
    $$
    CREATE PROCEDURE sp_DBR_rpm_sparkline_chart()
    BEGIN select 'dbr.hidecolumns', 1;
    select 'dbr.rowclass', '[style]';
    select 'dbr.colclass', '[Sparkline]', 'spark'; select '8,4,0,0,0,0,1,4,4,10,10,10,10,0,0,0,4,6,5,9,10' as 'Sparkline', 'line' as '[style]'; select 'dbr.javascript', "$('.line .spark').sparkline('html', { type: 'line', height: '20em', width: '80em' });", 'onload'; END
    $$

  2. myDBR Team, Key Master

    Sparkline charts are meant for showing trend/variation information in a compressed (usually just a line height) format. They are not meant to be a replacement for full featured chats with axis. If you want to show a full chart, use normal charts for it.

    --
    myDBR Team


Reply

You must log in to post.