PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, April 23, 2022

[FIXED] How to maintain the order of sections in pyramid chart of LightningChartJS?

 April 23, 2022     charts, javascript, lightningchart, pie-chart     No comments   

Issue

In the pie chart when we hide a section and then unhide it, its position is maintained. The section reappears at the same location. Whereas in pyramid charts the position of the section changes it reappears at the bottom of the pyramid chart irrespective of where it was present initially.

The 2015-2016 section reappears at the bottom of the pyramid in the third image.

The testing section reappears at the same location where it was present initially.


Solution

Both Charts can rearrange their slices by using Slice Sorters to keep the order of slices consistent - however, by default the Pyramid Chart does not use a sorting method.

Using the setSliceSorter() method of the Chart should help in keeping the order of slices consistent.



Answered By - terhoLCJS
Answer Checked By - Gilberto Lyons (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing