EPPLUS - Charts not updating after table grows - excel

I have an Excel file with a table and several charts created from data in the table. I need the charts to take any new data when the table grows. It works fine if I work from Excel, obviously (i.e. when I add a new row, the charts make room for the new data and when the numbers are added, the charts show the changes).
But I need to do it programmatically with Epplus. I've managed to add a row to the table and have it update all the formulae in it properly, but the charts are not updated.
Any idea of why this is? Is it a known limitation of EPPlus?
Or do I have to traverse all the charts and update the data series for each?

Related

Excel Chart range not updating

I have created a chart which is dependent on a table of data, where the data range contracts and expands according to user input. There is a cell where the user can input how many months the chart range should be and the data table that the chart is connected to pulls the corresponding range of data from a different, master data table.
So my issue is that, when the chart data table contracts, the chart does not adjust. There is no issue with the chart data table expanding, only when the chart data table contracts, as it should be able to. The issue is even more strange because usually I can fiddle with a setting briefly and then the chart will update. For instance, i can go to Select Data on the chart and then hit cancel and the chart updates. Or I can change chart type to the same it already was, and the chart will update. So why is it that the chart does not initially update when the data in its range change?
Also, I would prefer to not use VBA on this due to the file sizes with which I am working. Is there a trick to getting this to work in Excel?
Below is an image of what I'm referring to:

Create graphs by group in Excel

I have data that has different groupings.
The amount of rows could change from data pull to data pull.
I need to create graphs by these groupings that can change dynamically each time I run the data.
Is their a way to do this without having the change the data for each grouping each time?
Make the Data into a table in excel, then use the table reference for the graph, preferable a pivot chart. Data can be added at the bottom of a set of data set up as a table and the additional rows will be added to the table.
Here are some links about setting up tables and pivot tables/charts up.
http://www.wikihow.com/Create-Pivot-Tables-in-Excel
https://www.youtube.com/watch?v=IaOtCWxx3xU
https://support.office.com/en-us/article/Create-or-delete-a-PivotTable-or-PivotChart-report-d09e4d07-8cd6-4b60-afad-8fb67418800f

Excel: Create dynamic table from named range in another sheet

I'm creating templates reports to be filled by Apache-Poi.
I made some graph reports using named ranges, without problems. So, I don't need to know the amount of rows to graph it.
I have my presentation sheet separately from my data sheet (so I can hide the data sheet).
How can I have a table in the presentation sheet created from the data of the data sheet?
For instance, with my application I fill the table in the data sheet having 3 rows, I want to have a formatted table in the presentation sheet (with filters) populated with those 3 rows in the data sheet. And then if I fill the data sheet with 9 rows, well, you get the point. Any idea?
Edited: I'm working in an Export to Excel functionality for an application. What I do is to use an excel file as a report template, then with Apache POI, I clone the file, populate it with the report data, and then serve this file to be downloaded by the client browser.
I only fill the data in the Data sheet with Apache POI. Now, on the other reports, with my graphs on the presentation sheet, I don't have to do anything more than complete the data table (because I'm using named ranges).
I'm adding some screenshots with dummy data in order to explain a little more.
-- Data Sheet --
-- Presentation Sheet -- (what I want to achieve)

Create Multiple 'PivotCharts' on One 'PivotTable'

Within my Excel Spreadsheet I have a PivotTable which is based on data retrieved from a SQL query.
The PivotTable is made up of a series of customers, each with their own stock value.
I made a PivotChart, but as there are many customers, the lines on the Chart are unreadable.
I want to make an individual chart for each customer, however when I filter on one customer, every chart filters on that customer - not allowing me to do one chart for each
Is there a way around this?
After investigation, adding more than one PivotChart distorted the layout of the underlying data.
Therefore it is necessary to read the same data into the Excel spreadsheet twice to have a second PivotChart.

creating a series of MS Excel graphs with identical properties for a series of tables with different data but same data types

I have a series of table in Excel worksheets, all of them holds same data types, one table for one item, and how some values changed over time in each table column.
I want to create a excel graph/chart for each of this table, with same formatting, only the data should be different.
When I copy each from single graph to create many, the table link doesn't change and I have to do that manually, which is difficult because there are number of tables.
Is there any better solution? Thank you
The dirtiest solution is to simply use VBA to automate these changes.
I finally copied and pasted the same graphs for each table, undo the old links and linked each table separately. I was looking for a easier way than this because even this is difficult with number of tables increasing. Thank you.

Resources