SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Guru afridy's Avatar
    Join Date
    Mar 2007
    Posts
    966
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Urgent! Jplot beginner question

    Hello,

    i have 2 questions.

    1. as shown in the attachment, all yaxis tick values are stacked on top. what's wrong?
    Code:
    		  yaxis:{
    				renderer:$.jqplot.LogAxisRenderer,
    				min:0, max: 1000, Ticks: [[0],[100],[200],[300],[400],[500],[600],[700],[800],[900],[1000]],
    				tickOptions:{
    					labelPosition: 'middle', 
    					angle:-30
    				},.....
    screenshot.jpg
    2.

    How do i change the legend series1 to my own subject?


  2. #2
    SitePoint Guru afridy's Avatar
    Join Date
    Mar 2007
    Posts
    966
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    hello,
    i manage to solve the 2nd question regarding legend.
    but 1st one still could not solved.

  3. #3
    SitePoint Guru afridy's Avatar
    Join Date
    Mar 2007
    Posts
    966
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Both the problems are solved now.

    question 1 solved as follows :

    Code:
    					//renderer:$.jqplot.LogAxisRenderer,
    					min:0,// max:100,
    					numberTicks:11,
    					Ticks: [[0],[10],[20],[30],[40],[50],[60],[70],[80],[90],[100]],
    					tickOptions:{
    						labelPosition: 'middle', 
    						angle:-30
    					},
    question 2 solved as follows :

    Code:
    labels:['John','Mark'],
    ex:

    Code:
            legend: {
    				  show:true,
    				  //location: 'ne',//top right within graph area.
    				  placement: 'outside',
    				  labels:<?php include("legend_labels.php"); ?>//['John','Mark'],


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •