Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-1774

Admin monitoring graphs labels are misaligned

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.1.0
    • None
    • None
    • None

      On ExtJS fiddle, the labels are correctly aligned with this code.
      Why can't you do the same?

      Ext.create({
      xtype: 'cartesian',
      renderTo: document.body,
      width: 600,
      height: 400,
      insetPadding: 40,
      store: {
      fields: ['data1', 'time'],
      data: [{
      'time': new Date('Jan 1 2010 00:00').getTime(),
      'data1': 10
      }, {
      'time': new Date('Jan 1 2010 01:00').getTime(),
      'data1': 7
      }, {
      'time': new Date('Jan 1 2010 02:00').getTime(),
      'data1': 5
      }, {
      'time': new Date('Jan 1 2010 03:00').getTime(),
      'data1': 2
      }, {
      'time': new Date('Jan 1 2010 04:00').getTime(),
      'data1': 27
      }]
      },
      
      legend: {
      docked: 'right'
      },
      
      axes: [{
      type: 'numeric',
      position: 'left',
      fields: ['data1'],
      title: {
      text: 'Sample Values',
      fontSize: 15
      },
      grid: true,
      minimum: 0
      }, {
      type: 'time',
      position: 'bottom',
      grid: true,
      fields: ['time'],
      title: {
      text: 'Sample Values',
      fontSize: 15
      },
      dateFormat: "d/m/Y à H:i",
      label: {
      rotate: {
      degrees: -75
      }
      },
      fromDate: new Date('Jan 1 2010 00:00'),
      toDate: new Date('Jan 1 2010 04:00')
      }],
      series: [{
      type: 'line',
      xField: 'time',
      yField: 'data1',
      marker: {
      type: 'path',
      path: ['M', - 4, 0, 0, 4, 4, 0, 0, - 4, 'Z'],
      lineWidth: 2,
      fill: 'white'
      },
      tooltip: {
      trackMouse: true,
      dismissDelay: 0,
      renderer: Ext.bind(function (tooltip, record, item) {
      var date = Ext.Date.format(new Date(record.get('time')), "d/m/Y à H:i");
      var value = record.get('data1');
      tooltip.setHtml(date + ': ' + value);
      }, this)
      }
      }]
      }); 
      

          [RUNTIME-1774] Admin monitoring graphs labels are misaligned

          We did set 90° with a hack of " " to avoid text override
          There is still a few pixels issue

          Raphaël Franchet added a comment - We did set 90° with a hack of " " to avoid text override There is still a few pixels issue

          Patch for including the code in the monitoring tool

          Simon Prieul (Inactive) added a comment - Patch for including the code in the monitoring tool

          In this image, the given graph is included in the tool. Notice that the rendering of the time labels is not the same as in the fiddle. What do you think can be the cause of this ?

          User agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36

          Simon Prieul (Inactive) added a comment - In this image, the given graph is included in the tool. Notice that the rendering of the time labels is not the same as in the fiddle. What do you think can be the cause of this ? User agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36

            sprieul Simon Prieul (Inactive)
            raphael Raphaël Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: