I want to add a new slide to an existing powerpoint file and add a new line chart.
The number of series and data points and labels will be dynamic. How to achieve it using Open XML SDK? I couldn't find any good documentation on charts.
Thanks
Related
I am new to d3 but I am hoping that it possible to create a chart in d3 and output the chart to a file without displaying it on a page first. Is it? I would like to include various charts in a pdf document using fpdf and import into the pdf a chart or two.
I have been searching around for a solution to this for some time now. While I can see that you can:
Use d3 (chart.js etc) to generate a chart and display it on screen in a page
Export the image to file on the server
And then create the pdf importing the saved image
But I want to avoid any on screen display and for the image of the chart to be saved to the server directly so that fpdf can import it in.
This seems to me something that would be required frequently but I can't seem to find a solution.
An option seems to be to use something like phantomjs as an interim step but I think that this needs to be running on my host. It would be great if it could be exported to file driectly from d3. Is this possible?
I have a pptx file which has text, tables and charts. I am trying to automate validation of the data contained in the file using VBScript (not VBA or VB).
I am able to read all the text and table data but unable to read the chart data. Can someone help me to understand how to go about reading pptx chart data using vbscript?
SOLVED!
Office 2007 - Slide.Shape.Chart.ChartData.Workbook.Worksheets(1) contains the chart data.
I use jqPlot for creating a graph in my web application.
Initially, the graph is blank.
My goal is I allow users to select a specific dataset from a dropdown. Each dataset will have different maker render options derived from a lookup file that I maintain separately.
When users select a new dataset, that dataset will be drawn onto the graph with other previous selected datasets. Is it possible to achieve this effort dynamically through jqPlot APIs?
Here is what I have done:
I add new dataset to myChart.data. The data property is an an array of all datasets from the chart.
I clone a new series from myChart.series[0], extend the cloned series with my specific marker render options and add the cloned series to myChart.series.
I redraw the chart.
Apparently it doesn't work. I always get an error like at line 3059 jquery.jqplot.js
Uncaught TypeError: Cannot read property 'shadowCanvas' of undefined
Looking thru the source code, I realize that the jqPlot init function also does initializations of other members of the graph and that is why I receive the above error.
Please help.
============================================
I solved the problem by accessing the data and the options from the jqplot directly (not thru any API). To draw the graph when new data series added, I will do:
jQuery.jqplot('ptGraph', chartData, chartOpts);
chartData will contain old and new series data and chartOpts will contain old and new data series options. THe new options will have to contain customized parameters (like marker icons, etc). There is no API involved, just pure coding for now.
The main idea: a user creates a powerpoint file with 1 slide, and this slide is inserted into a slideshow which is already looping.
A first idea I had was to convert the .ppt file into an image (e.g. using http://www.artofsolving.com/opensource/jodconverter/ or a .NET API), and then create a flash application which scans a directory for images(/converted slides) to show.
But this seems a bit like a complex solution, any suggestions?
You can achieve this using the insert object feature in PowerPoint.
Choose Insert from file
Select the powerpoint file
Check Link Checkbox
And its done. Any changes in the linked file are reflected in the already looping show. Let me know if you don't get it.
I am trying to take a chart(on it's own "sheet", not as an object inside of another "sheet"), and display it on a VB2010 windows form.
The only thing I could find was creating the chart using code, and then loading in the data series from excel. ie. Chart1.ChartType = "XYscatter" or something along those lines, and I haven't even gotten that to work right.
I have way to many charts to go through and manually set them to the way they should be. Is there an easy way to just use Imports Microsoft.Office.Interop to do something along the lines of
Chart1 = xlWorkBook.Charts("MyChart")
?
Your are on the right line, if you have specific questions about creating a chart with code, post what you've got and i'll see if i can help
If you want to display the chart on a .Net form it might be best to take an image of the chart and put that on the form
get a chart object:
Set Chart1 = xlWorkBook.Charts("MyChart")
copy it
Chart1.ChartArea.Copy
its now on the clipboard. you should be able to access from there in .Net as you see fit
To prove its there, you can paste it into a normal excel worksheet
ActiveSheet.PasteSpecial Format:="Picture (Enhanced Metafile)", _
Link:=False, DisplayAsIcon:=False