Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

creating line charts on the basis of cells selections #5

Closed
gulshan-escalon opened this issue Apr 11, 2017 · 10 comments
Closed

creating line charts on the basis of cells selections #5

gulshan-escalon opened this issue Apr 11, 2017 · 10 comments

Comments

@gulshan-escalon
Copy link

Hi Paul,

Hope you are doing good !!!

Actually I want to create line charts on the basis of cells selections. Is there any idea from your end as I am using jexcel plugin.

Thanks
Gulshan

@pphod
Copy link
Contributor

pphod commented Apr 11, 2017

This is an example how to create a chart based on the full spreadsheet.
http://www.bossanova.uk/jexcel/tracking-changes-on-the-spreadsheet
http://jsfiddle.net/zmtsbnng/

To can adapt the script to use only the selected cells, you can get all selected by using:
var td = $('#your-table-id').find('.highlight');

If you have problems on doing that, you can share your try on fiddle and I can suggest solutions.

Regards

@gulshan-escalon
Copy link
Author

Thanks for your feedback But I need little bit different than you sent me. I have to manually select the rows or columns for x-axis and y-axis. For that I took input fields for selection. In first input fields i do selects cells for x-axis and in another input fields I again do select for y -axis then On the basis of both selection I have to make the data for x-axis and y-axis.

Any solution for that ?

Thanks

@pphod
Copy link
Contributor

pphod commented Apr 12, 2017

Hi, to get the selected data as a JS array:

var data = $('#yourtable').jexcel('getData', true); // True get only the selected cells data
console.log(data);

@gulshan-escalon
Copy link
Author

Hi , Thanks working on the same , Now I want to make the x-axis label dynemic on the basis of selection into excell sheet . Any solution form me would be apreciated. ??

@pphod
Copy link
Contributor

pphod commented Apr 12, 2017

You have two methods to get information from jExcel.
$('#yourtable').jexcel('getData', true); // Get all selected data in an array
$('#yourtable').jexcel('getValue', 'B1'); // Get value from one specified cell A1, B2, C39, etc...

@gulshan-escalon
Copy link
Author

yes , But How can i change the label into line charts according to the cells selection value. currently its ['jan','feb', ...so on] But I want to change it by the selection value , Any Idea ?

@gulshan-escalon
Copy link
Author

gulshan-escalon commented Apr 12, 2017

I am getting the value from excell Now I need to reflect it to the line charts. Like If I choose three value for x-axis from excell sheet now I want those value as label of x-axis. What I am doing I made the restriction for the user to choose one column or one row at a time so I want those value in the x-axis and y-axis in the line charts. How can i achieve this ?

@pphod
Copy link
Contributor

pphod commented Apr 12, 2017

Hi,
Well you can easily extract the information from the table, but now you should applied that to meet your requirements. All the best

@pphod pphod closed this as completed Apr 12, 2017
@gulshan-escalon
Copy link
Author

ok , Thanks Paul

@Harsh-baghel
Copy link

Hi Paul,

How can i get the particular row data corresponding to the header using jexcel v3 plugin.
Like my header are company name, website,email so i want data like this company name-Ideapoke Technology, website- www.ideapoke.com , email- info@ideapoke.com in the json format.
Is there any way to get data like this please suggest me any idea related to my query.

Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants