Hi again,
This has worked perfectly! I've replicated it several times. However, now I have another question.
How do I add another data series to the sortable chart? It feels like it should be easy but every time I add data it doesn't work. Taking your JSFiddle (
https://jsfiddle.net/BlackLabel/u3bb6oah/ ) how would I simply add a second bar under the existing bar for each category?
Also, with the new data point for each category, is it possible to add button to sort by that point? So, one button to sort alpha, two buttons to sort by existing data (EL) and two buttons to sort by new data (Ever EL)?
Hope this makes sense.
Existing data:
Code: Select all
series: [{
name: 'EL',
color: '#00619e',
data: [35, 37, 5, 9, 27, 31, 3, 38, 5, 52, 0, 23, 9, 25, 19, 10, 26, 49, 19, 16, 0, 7, 2, 43, 4, 12, 7, 1, 9, 36, 15, 36, 24, 3, 33, 56, 46, 32, 6, 34, 15, 10, 1, 30, 11, 1, 46, 11, 18, 22, 54, 45, 4, 26, 49, 2, 5, 3, 3, 41, 17, 6, 8, 9, 0, 3, 10, 7, 3, 22, 19, 5, 15, 18, 3, 29, 6, 34, 28, 0, 0, 6, 11, 27, 11, 4, 12, 7, 3, 7, 24, 0, 21, 0, 5, 10, 0, 6, 10]
}]
Data that needs to be added as a new bar for each category (each category would then have two pieces of data):
Code: Select all
name: 'Ever EL',
color: '#000000',
data: [35, 37, 5, 9, 27, 31, 3, 38, 5, 52, 0, 23, 9, 25, 19, 10, 26, 49, 19, 16, 0, 7, 2, 43, 4, 12, 7, 1, 9, 36, 15, 36, 24, 3, 33, 56, 46, 32, 6, 34, 15, 10, 1, 30, 11, 1, 46, 11, 18, 22, 54, 45, 4, 26, 49, 2, 5, 3, 3, 41, 17, 6, 8, 9, 0, 3, 10, 7, 3, 22, 19, 5, 15, 18, 3, 29, 6, 34, 28, 0, 0, 6, 11, 27, 11, 4, 12, 7, 3, 7, 24, 0, 21, 0, 5, 10, 0, 6, 10]
Thanks in advance!
JT