IE not showing xaxis

Share RGraph:   To help my Google visibility (it can't get much worse!), if you like and use RGraph I'd appreciate it if you could link to me

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Harry on 14th October 2015
I'm stuck on this:
in FF, Chrom etc verything is working as it should, but in IE (11) the x-axis is not showing at all:

     function GetDetails(e,bar){
      
             var idx = bar[5];
             var nJaar = <?php echo $beginjaar;?>+idx;
             getIndexData(nJaar);
             var obj = e.target.__object__;
            
             // Add the highlight
             obj.context.beginPath();
                 obj.context.fillStyle = '<?php echo $highcolor;?>';
                 obj.context.fillRect(bar['x'], bar['y'], bar['width'], bar['height']);
               obj.context.fill();
               //obj.scale.thousand='.';
        
     }


     function myMousemove (e, bar){
        e.target.style.cursor = 'pointer';
     }


         var bar = new RGraph.Bar({
           id: 'cvs',
           data: <?php echo $dataset;?>,
           options: {
               shadow: false,
               backgroundGridVlines: false,
               backgroundGridBorder: false,
               ylabels: false,
               noyaxis:true,
               ymax: <?php echo $ymax;?>,
               gutterLeft: 10,
               gutterBottom: 40,
               colors: ['<?php echo $barcolor;?>'],
               clearto: 'white',
               noaxes: true,
               hmargin: <?php echo $hmargin;?>,
               eventsClick: GetDetails,
               eventsMousemove: myMousemove
           }
         });

         var line = new RGraph.Line({
             id: 'cvs',
             data: <?php echo $linedataset;?>,
             options: {
                 colors: ['#DB5E56'],
                 ymax: <?php echo $ymax;?>,
                 linewidth: 2,
                 noaxes: true,
                 gutterBottom: 2,
                 backgroundGridVlines: false,
                 backgroundGridHlines: false,
                 backgroundGridBorder: false,
                 tickmarks: null
             }
         });

         var line2 = new RGraph.Line({
             id: 'cvs',
             data: <?php echo $wensset;?>,
             options: {
                 colors: ['#0B559F'],
                 ymax: <?php echo $ymax;?>,
                 backgroundGridVlines: false,
                 backgroundGridHlines: false,
                 backgroundGridBorder: false,
                 gutterBottom: 40,
                 linewidth: 2,
                 tickmarks: null,
                 textSize: 8 ,
                 labels: <?php echo $jaarset;?>
             }
         });

         var combo = new RGraph.CombinedChart(bar, line, line2).draw();
Posted by Richard Heyes on 14th October 2015
Hi there,

I can't really tell from that. Try:

1. Put an example of it online and post the link to it so that I can have a look.

2. See if any error message is shown in the F12 developer tools console.

3. All of your PHP tag angle brackets are reversed - though if it's working in chrome/FF it's probably not this.



Richard

Add a reply




« Back to message list