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

How to export data to xsl? #163

Open
MarwenBenTalebAli opened this issue Oct 6, 2021 · 0 comments
Open

How to export data to xsl? #163

MarwenBenTalebAli opened this issue Oct 6, 2021 · 0 comments

Comments

@MarwenBenTalebAli
Copy link

I want a .xls excel file I tried the porps fileExtension="xls" but I can not open the file.

const multiDataSet = [
  {
    columns: [{ title: 'Date' }, { title: 'Valeur 1' }, { title: 'Valeur 2' }],
    data: [[{ value: 'Dat1' }, { value: '10' }, { value: '12' }]]
  }
];
  //...
    <ExcelFile
        fileExtension='xls'
        element={<button>Download Data</button>}>
         <ExcelSheet dataSet={multiDataSet} name='ChartData' />
    </ExcelFile>
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

1 participant