php - jqplot graphs are displayed on top of one another -
i have form user fills in show report , when submitted report shows table whatever values database , each table has graph below it.
so problem when report contains many tables, graphs on top of each other after first table, , can see last graph want each graph after table.
it worked perfect when using phplot don't know problem here. added word 'graph' between div tags test so:
<div id="chart1">graph</div>
and word 'graph' after each table actual graphs stuck in 1 place.
any idea how fix this?
here's code making graphs:
< script type = "text/javascript" > $(document).ready(function () { var line1 = < ? php echo json_encode($data, json_numeric_check); ? > var plot1 = $.jqplot('chart1', [line1], { title : 'daily usage <?php echo $datestart;?> <?php echo $dateend;?>', axesdefaults : { pad : 0 }, axes : { xaxis : { renderer : $.jqplot.dateaxisrenderer, tickinterval : '1 day', tickoptions : { angle : -30, fontsize : '6pt', formatstring : '%d' } } }, cursor : { show : true, zoom : true, showtooltip : false }, highlighter : { show : true, sizeajust : 7.5 } } ); } ); < / script >
Comments
Post a Comment