Home forums Using CanvasJS Y-axis labels skipped

This topic contains 3 replies, has 2 voices, and was last updated by  Vishwas R 1 month, 3 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #19749

    jkd_dude
    Member

    I’m doing a stacked bar chart w/ about 150 or so elements in the Y-axis.

    Everything works, but it’s only putting a label for every 10th item. This doesn’t occur w/ smaller datasets.

    Here’s a screenshot:
    Sample

    Is there some option I’m missing?

    If I can get this to work how I need, I”m definitely going to buy it.

    #19750

    jkd_dude
    Member

    Here’s the code:

    var chart = new CanvasJS.Chart("agentgraph", {
    	animationEnabled: true,
    	exportEnabled: true,
    	theme: "light1", // "light1", "light2", "dark1", "dark2"
    	title:{
    		text: "Lead activity",
    		fontSize: 28,
    	},
    	dataPointWidth: 10,
    	axisX:{
    		reversed: true,
           labelFontSize: 8,
    	},
    	axisY: {
           labelFontSize: 10
    	},
    	toolTip:{
    		shared: true
    	},
    	data: [{
    		type: "stackedBar",
    		name: "Accepted",
    		dataPoints: [{"label":"Barry Aldridge","y":1},
    {"label":"Tyler Antrican","y":2},
    {"label":"Ali Atri","y":0},
    {"label":"Denise Babbitt","y":1},
    {"label":"Julie Baker","y":1},
    {"label":"Dena Band","y":1},
    {"label":"Buddy Bankston","y":1},
    {"label":"Kendra Baran","y":0},
    {"label":"Alexandria Baxter","y":0},
    {"label":"Reid Baxter","y":1},
    {"label":"Amy Biddle","y":1},
    {"label":"Samantha Borte","y":0},
    {"label":"Jerry Botelho","y":0},
    {"label":"Anne Brade","y":0},
    {"label":"Noel Brown","y":0},
    {"label":"Leigh Brown","y":1},
    {"label":"Emily Bryant","y":0},
    {"label":"Cherie Burris","y":2},
    {"label":"Laura Collins","y":2},
    {"label":"Elizabeth Connelly","y":1},
    {"label":"Lizette Conover","y":1},
    {"label":"Marie Conway","y":0},
    {"label":"Nancy Costa","y":0},
    {"label":"Gina Creson","y":1},
    {"label":"Sarika Daftuar","y":1},
    {"label":"Shannon David","y":0},
    {"label":"Starlese Dawkins","y":1},
    {"label":"Frances Dawson","y":0},
    {"label":"Josh Dearing","y":0},
    {"label":"Joe DelVecchio","y":0},
    {"label":"Chris Edmundson","y":0},
    {"label":"Terry Edmundson","y":0},
    {"label":"Danny Edwards","y":1},
    {"label":"Danielle Edwards","y":0},
    {"label":"Mil Elliott","y":1},
    {"label":"Eric Evans","y":0},
    {"label":"Jason Everakes","y":0},
    {"label":"Julie Everakes","y":1},
    {"label":"Jackie Fenbert","y":0},
    {"label":"Amy Fesmire","y":0},
    {"label":"Daimean Fludd","y":0},
    {"label":"Joe Fontana","y":0},
    {"label":"Eric Gay","y":0},
    {"label":"Brian Gibson","y":1},
    {"label":"Dawn Gilliam","y":0},
    {"label":"Beverly Gish","y":0},
    {"label":"Mickey Gold","y":0},
    {"label":"Syd Grant","y":0},
    {"label":"Andrea Grant","y":2},
    {"label":"Nelson Grassi","y":1},
    {"label":"Warren Greenlee","y":0},
    {"label":"Joy Groya","y":0},
    {"label":"Kathy Hanson","y":0},
    {"label":"Nicholas Harvey","y":0},
    {"label":"Zanthia Hastings","y":0},
    {"label":"Mark Hatcher","y":0},
    {"label":"Peter Hatheway","y":1},
    {"label":"Sylvia Hefferon","y":1},
    {"label":"Willow Heverley","y":1},
    {"label":"Debbie Hilton","y":0},
    {"label":"Nina Hollander","y":1},
    {"label":"Don Holsclaw","y":1},
    {"label":"Nita Hunt","y":1},
    {"label":"Robin Husney","y":1},
    {"label":"Kami Jackson","y":1},
    {"label":"Jody Jessup","y":2},
    {"label":"Talia Johnson","y":1},
    {"label":"Pauline Katsoudas","y":0},
    {"label":"Glo Kearns","y":1},
    {"label":"Janan Kennedy","y":1},
    {"label":"Nancy Kennedy","y":0},
    {"label":"Kathleen KC Kercher","y":1},
    {"label":"Chris Kirkman","y":2},
    {"label":"Chris Klebba","y":1},
    {"label":"Candy La Monica","y":2},
    {"label":"Nancy Lewis","y":1},
    {"label":"Nikki Long","y":4},
    {"label":"Kristine Lovell","y":0},
    {"label":"Kandi Lowe","y":0},
    {"label":"Jeff Lynch","y":1},
    {"label":"Denise Mackey","y":0},
    {"label":"Amanda Maguire","y":0},
    {"label":"Debe Maxwell","y":1},
    {"label":"Terri Mayhew","y":1},
    {"label":"Sandy McAlpine","y":0},
    {"label":"Denise McCarthy","y":1},
    {"label":"Nancy McCauley","y":2},
    {"label":"Marta McGuire","y":0},
    {"label":"Nonie McVicker","y":1},
    {"label":"Kathy Merlo","y":0},
    {"label":"April Monroe","y":0},
    {"label":"Michael Morgan","y":0},
    {"label":"Deborah Mullins","y":0},
    {"label":"Frank Nelson","y":1},
    {"label":"Larry Nooe","y":1},
    {"label":"Patrick Nooney","y":1},
    {"label":"Heidi Nygaard","y":0},
    {"label":"Trish Nystrom","y":0},
    {"label":"Lloyd Odell","y":0},
    {"label":"Karen Odell","y":2},
    {"label":"Heather Offerdahl","y":0},
    {"label":"Libby Offnick","y":1},
    {"label":"Steve Onisick","y":3},
    {"label":"Nathan Parry","y":2},
    {"label":"Steve Perri","y":10},
    {"label":"Amanda Peterson","y":0},
    {"label":"Timothy Plyler","y":1},
    {"label":"Laura Pogue","y":0},
    {"label":"Joey Prather","y":1},
    {"label":"Jamie Purvis","y":0},
    {"label":"Angela Purvis","y":0},
    {"label":"Ross Rachal","y":2},
    {"label":"Rachel Reardon","y":1},
    {"label":"Helen Reece","y":1},
    {"label":"Sandy Reynolds","y":0},
    {"label":"Traci Richardson","y":1},
    {"label":"Sue Robertson","y":2},
    {"label":"Nasrin Robinson","y":0},
    {"label":"Cynthia Ruen","y":1},
    {"label":"Maribeth Rutkowski","y":1},
    {"label":"Sarah Rutkowski","y":0},
    {"label":"Leila Schellenberg","y":1},
    {"label":"Marie Schyberg","y":0},
    {"label":"Michael Seaton","y":1},
    {"label":"Cheryl Sileo","y":0},
    {"label":"Cristi Sims","y":0},
    {"label":"Rozalia Sirbu","y":1},
    {"label":"Bala Sure","y":1},
    {"label":"Carrie Taylor","y":1},
    {"label":"Thu Vo","y":1},
    {"label":"MaryBeth Walsh","y":0},
    {"label":"Andrea Wells","y":0},
    {"label":"Jon Widdifield","y":2},
    {"label":"Beth Williams","y":1},
    {"label":"Erica Wilson","y":0},
    {"label":"Ryan Wilson","y":0},
    {"label":"Derek Worrell","y":6},
    {"label":"Marc Zolotorofe","y":1}]
    	},{
    		type: "stackedBar",
    		name: "Declined",
    		dataPoints: [{"label":"Barry Aldridge","y":0},
    {"label":"Tyler Antrican","y":0},
    {"label":"Ali Atri","y":0},
    {"label":"Denise Babbitt","y":0},
    {"label":"Julie Baker","y":0},
    {"label":"Dena Band","y":0},
    {"label":"Buddy Bankston","y":0},
    {"label":"Kendra Baran","y":0},
    {"label":"Alexandria Baxter","y":0},
    {"label":"Reid Baxter","y":0},
    {"label":"Amy Biddle","y":0},
    {"label":"Samantha Borte","y":0},
    {"label":"Jerry Botelho","y":0},
    {"label":"Anne Brade","y":0},
    {"label":"Noel Brown","y":0},
    {"label":"Leigh Brown","y":0},
    {"label":"Emily Bryant","y":0},
    {"label":"Cherie Burris","y":0},
    {"label":"Laura Collins","y":0},
    {"label":"Elizabeth Connelly","y":0},
    {"label":"Lizette Conover","y":0},
    {"label":"Marie Conway","y":0},
    {"label":"Nancy Costa","y":0},
    {"label":"Gina Creson","y":0},
    {"label":"Sarika Daftuar","y":0},
    {"label":"Shannon David","y":0},
    {"label":"Starlese Dawkins","y":0},
    {"label":"Frances Dawson","y":1},
    {"label":"Josh Dearing","y":0},
    {"label":"Joe DelVecchio","y":1},
    {"label":"Chris Edmundson","y":0},
    {"label":"Terry Edmundson","y":0},
    {"label":"Danny Edwards","y":0},
    {"label":"Danielle Edwards","y":0},
    {"label":"Mil Elliott","y":0},
    {"label":"Eric Evans","y":0},
    {"label":"Jason Everakes","y":0},
    {"label":"Julie Everakes","y":0},
    {"label":"Jackie Fenbert","y":0},
    {"label":"Amy Fesmire","y":0},
    {"label":"Daimean Fludd","y":0},
    {"label":"Joe Fontana","y":0},
    {"label":"Eric Gay","y":0},
    {"label":"Brian Gibson","y":0},
    {"label":"Dawn Gilliam","y":0},
    {"label":"Beverly Gish","y":0},
    {"label":"Mickey Gold","y":0},
    {"label":"Syd Grant","y":0},
    {"label":"Andrea Grant","y":0},
    {"label":"Nelson Grassi","y":0},
    {"label":"Warren Greenlee","y":0},
    {"label":"Joy Groya","y":1},
    {"label":"Kathy Hanson","y":0},
    {"label":"Nicholas Harvey","y":0},
    {"label":"Zanthia Hastings","y":1},
    {"label":"Mark Hatcher","y":2},
    {"label":"Peter Hatheway","y":0},
    {"label":"Sylvia Hefferon","y":0},
    {"label":"Willow Heverley","y":0},
    {"label":"Debbie Hilton","y":0},
    {"label":"Nina Hollander","y":0},
    {"label":"Don Holsclaw","y":0},
    {"label":"Nita Hunt","y":0},
    {"label":"Robin Husney","y":0},
    {"label":"Kami Jackson","y":0},
    {"label":"Jody Jessup","y":0},
    {"label":"Talia Johnson","y":0},
    {"label":"Pauline Katsoudas","y":0},
    {"label":"Glo Kearns","y":0},
    {"label":"Janan Kennedy","y":0},
    {"label":"Nancy Kennedy","y":0},
    {"label":"Kathleen KC Kercher","y":0},
    {"label":"Chris Kirkman","y":0},
    {"label":"Chris Klebba","y":0},
    {"label":"Candy La Monica","y":0},
    {"label":"Nancy Lewis","y":0},
    {"label":"Nikki Long","y":1},
    {"label":"Kristine Lovell","y":0},
    {"label":"Kandi Lowe","y":0},
    {"label":"Jeff Lynch","y":0},
    {"label":"Denise Mackey","y":0},
    {"label":"Amanda Maguire","y":0},
    {"label":"Debe Maxwell","y":0},
    {"label":"Terri Mayhew","y":0},
    {"label":"Sandy McAlpine","y":0},
    {"label":"Denise McCarthy","y":0},
    {"label":"Nancy McCauley","y":0},
    {"label":"Marta McGuire","y":0},
    {"label":"Nonie McVicker","y":0},
    {"label":"Kathy Merlo","y":0},
    {"label":"April Monroe","y":0},
    {"label":"Michael Morgan","y":0},
    {"label":"Deborah Mullins","y":0},
    {"label":"Frank Nelson","y":0},
    {"label":"Larry Nooe","y":0},
    {"label":"Patrick Nooney","y":0},
    {"label":"Heidi Nygaard","y":0},
    {"label":"Trish Nystrom","y":1},
    {"label":"Lloyd Odell","y":1},
    {"label":"Karen Odell","y":0},
    {"label":"Heather Offerdahl","y":0},
    {"label":"Libby Offnick","y":0},
    {"label":"Steve Onisick","y":0},
    {"label":"Nathan Parry","y":0},
    {"label":"Steve Perri","y":0},
    {"label":"Amanda Peterson","y":0},
    {"label":"Timothy Plyler","y":0},
    {"label":"Laura Pogue","y":0},
    {"label":"Joey Prather","y":0},
    {"label":"Jamie Purvis","y":0},
    {"label":"Angela Purvis","y":0},
    {"label":"Ross Rachal","y":0},
    {"label":"Rachel Reardon","y":0},
    {"label":"Helen Reece","y":0},
    {"label":"Sandy Reynolds","y":0},
    {"label":"Traci Richardson","y":0},
    {"label":"Sue Robertson","y":0},
    {"label":"Nasrin Robinson","y":0},
    {"label":"Cynthia Ruen","y":0},
    {"label":"Maribeth Rutkowski","y":0},
    {"label":"Sarah Rutkowski","y":0},
    {"label":"Leila Schellenberg","y":0},
    {"label":"Marie Schyberg","y":0},
    {"label":"Michael Seaton","y":0},
    {"label":"Cheryl Sileo","y":0},
    {"label":"Cristi Sims","y":0},
    {"label":"Rozalia Sirbu","y":0},
    {"label":"Bala Sure","y":0},
    {"label":"Carrie Taylor","y":0},
    {"label":"Thu Vo","y":0},
    {"label":"MaryBeth Walsh","y":1},
    {"label":"Andrea Wells","y":0},
    {"label":"Jon Widdifield","y":0},
    {"label":"Beth Williams","y":0},
    {"label":"Erica Wilson","y":0},
    {"label":"Ryan Wilson","y":0},
    {"label":"Derek Worrell","y":0},
    {"label":"Marc Zolotorofe","y":0}]
    	},{
    		type: "stackedBar",
    		name: "No Answer",
    		//indexLabel: "#total",
    		//indexLabelPlacement: "outside",
    		//indexLabelFontSize: 15,
    		//indexLabelFontWeight: "bold",
    		dataPoints: [{"label":"Barry Aldridge","y":0},
    {"label":"Tyler Antrican","y":0},
    {"label":"Ali Atri","y":1},
    {"label":"Denise Babbitt","y":0},
    {"label":"Julie Baker","y":0},
    {"label":"Dena Band","y":0},
    {"label":"Buddy Bankston","y":0},
    {"label":"Kendra Baran","y":1},
    {"label":"Alexandria Baxter","y":1},
    {"label":"Reid Baxter","y":0},
    {"label":"Amy Biddle","y":0},
    {"label":"Samantha Borte","y":1},
    {"label":"Jerry Botelho","y":1},
    {"label":"Anne Brade","y":1},
    {"label":"Noel Brown","y":1},
    {"label":"Leigh Brown","y":0},
    {"label":"Emily Bryant","y":1},
    {"label":"Cherie Burris","y":0},
    {"label":"Laura Collins","y":0},
    {"label":"Elizabeth Connelly","y":0},
    {"label":"Lizette Conover","y":0},
    {"label":"Marie Conway","y":1},
    {"label":"Nancy Costa","y":1},
    {"label":"Gina Creson","y":0},
    {"label":"Sarika Daftuar","y":0},
    {"label":"Shannon David","y":1},
    {"label":"Starlese Dawkins","y":0},
    {"label":"Frances Dawson","y":0},
    {"label":"Josh Dearing","y":1},
    {"label":"Joe DelVecchio","y":0},
    {"label":"Chris Edmundson","y":1},
    {"label":"Terry Edmundson","y":1},
    {"label":"Danny Edwards","y":0},
    {"label":"Danielle Edwards","y":1},
    {"label":"Mil Elliott","y":0},
    {"label":"Eric Evans","y":1},
    {"label":"Jason Everakes","y":1},
    {"label":"Julie Everakes","y":0},
    {"label":"Jackie Fenbert","y":1},
    {"label":"Amy Fesmire","y":1},
    {"label":"Daimean Fludd","y":1},
    {"label":"Joe Fontana","y":1},
    {"label":"Eric Gay","y":1},
    {"label":"Brian Gibson","y":0},
    {"label":"Dawn Gilliam","y":1},
    {"label":"Beverly Gish","y":1},
    {"label":"Mickey Gold","y":1},
    {"label":"Syd Grant","y":1},
    {"label":"Andrea Grant","y":0},
    {"label":"Nelson Grassi","y":0},
    {"label":"Warren Greenlee","y":1},
    {"label":"Joy Groya","y":0},
    {"label":"Kathy Hanson","y":1},
    {"label":"Nicholas Harvey","y":1},
    {"label":"Zanthia Hastings","y":0},
    {"label":"Mark Hatcher","y":0},
    {"label":"Peter Hatheway","y":0},
    {"label":"Sylvia Hefferon","y":0},
    {"label":"Willow Heverley","y":0},
    {"label":"Debbie Hilton","y":1},
    {"label":"Nina Hollander","y":0},
    {"label":"Don Holsclaw","y":0},
    {"label":"Nita Hunt","y":0},
    {"label":"Robin Husney","y":0},
    {"label":"Kami Jackson","y":0},
    {"label":"Jody Jessup","y":0},
    {"label":"Talia Johnson","y":0},
    {"label":"Pauline Katsoudas","y":1},
    {"label":"Glo Kearns","y":0},
    {"label":"Janan Kennedy","y":0},
    {"label":"Nancy Kennedy","y":1},
    {"label":"Kathleen KC Kercher","y":0},
    {"label":"Chris Kirkman","y":0},
    {"label":"Chris Klebba","y":0},
    {"label":"Candy La Monica","y":0},
    {"label":"Nancy Lewis","y":0},
    {"label":"Nikki Long","y":0},
    {"label":"Kristine Lovell","y":1},
    {"label":"Kandi Lowe","y":1},
    {"label":"Jeff Lynch","y":0},
    {"label":"Denise Mackey","y":1},
    {"label":"Amanda Maguire","y":1},
    {"label":"Debe Maxwell","y":0},
    {"label":"Terri Mayhew","y":0},
    {"label":"Sandy McAlpine","y":1},
    {"label":"Denise McCarthy","y":0},
    {"label":"Nancy McCauley","y":0},
    {"label":"Marta McGuire","y":1},
    {"label":"Nonie McVicker","y":0},
    {"label":"Kathy Merlo","y":1},
    {"label":"April Monroe","y":2},
    {"label":"Michael Morgan","y":1},
    {"label":"Deborah Mullins","y":2},
    {"label":"Frank Nelson","y":0},
    {"label":"Larry Nooe","y":0},
    {"label":"Patrick Nooney","y":0},
    {"label":"Heidi Nygaard","y":2},
    {"label":"Trish Nystrom","y":0},
    {"label":"Lloyd Odell","y":0},
    {"label":"Karen Odell","y":0},
    {"label":"Heather Offerdahl","y":1},
    {"label":"Libby Offnick","y":0},
    {"label":"Steve Onisick","y":0},
    {"label":"Nathan Parry","y":0},
    {"label":"Steve Perri","y":0},
    {"label":"Amanda Peterson","y":1},
    {"label":"Timothy Plyler","y":0},
    {"label":"Laura Pogue","y":1},
    {"label":"Joey Prather","y":0},
    {"label":"Jamie Purvis","y":1},
    {"label":"Angela Purvis","y":1},
    {"label":"Ross Rachal","y":0},
    {"label":"Rachel Reardon","y":2},
    {"label":"Helen Reece","y":0},
    {"label":"Sandy Reynolds","y":1},
    {"label":"Traci Richardson","y":0},
    {"label":"Sue Robertson","y":0},
    {"label":"Nasrin Robinson","y":1},
    {"label":"Cynthia Ruen","y":0},
    {"label":"Maribeth Rutkowski","y":0},
    {"label":"Sarah Rutkowski","y":1},
    {"label":"Leila Schellenberg","y":0},
    {"label":"Marie Schyberg","y":1},
    {"label":"Michael Seaton","y":0},
    {"label":"Cheryl Sileo","y":1},
    {"label":"Cristi Sims","y":1},
    {"label":"Rozalia Sirbu","y":0},
    {"label":"Bala Sure","y":0},
    {"label":"Carrie Taylor","y":0},
    {"label":"Thu Vo","y":0},
    {"label":"MaryBeth Walsh","y":0},
    {"label":"Andrea Wells","y":1},
    {"label":"Jon Widdifield","y":0},
    {"label":"Beth Williams","y":0},
    {"label":"Erica Wilson","y":1},
    {"label":"Ryan Wilson","y":1},
    {"label":"Derek Worrell","y":0},
    {"label":"Marc Zolotorofe","y":0}]
    	}],
    });
    chart.render();
     
    #19751

    jkd_dude
    Member

    NEVER MIND!

    I figured it out… “interval” option.

    Next time I’ll read the manual… :-)

    #19762

    Vishwas R
    Keymaster

    @jkd_dude,

    Glad that you figured out :)


    Vishwas R
    Team CanvasJS

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.