We have four options for Highcharts exporting. PNG, JPEG, PDF & SVG. When we do the export and print the image, the scaling is not consistent for other charts. i have set the exporting sourceWidth to 2000.
exporting:{
sourceWidth:2000
}
This does prints the image in landscape mode but the labels and legend are hard to read. Is there a better way to scale the chart for pdf and png image type so it is better looking and easier to read?
Related
I need to write the picture into Excel. The picture is displayed in the middle of the grid (this grid may be combined by multiple grids). If the picture is larger than the grid, it needs to be scaled in the middle of the grid. Now, the problem is that the height unit read by Excel is not a pixel. After calculating the scaling, the written excel will deform the picture. Have you encountered similar problems? How to solve it?
Export of charts to PDF or SVG working.
Export of a zoomed chart results in SVG-File with chart without zoom. Is there a way to generate a SVG image of the chart with the selected zoom?
You should be able to export the zoomed chart by setting the extremes of the axes. I think axis extremes are not synchronized, but you can get the values from a ChartSelectionEvent for instance.
My charts turned into regular shape after I saved it to SVG and re-opened the file. I am not sure if it was that caused the problem but that is all what I know and now, since it turned into regular shape, I can't edit the data anymore.
here is the image :
And for your info, it is not donut chart, it is just collection of pie chart.
so my question is, how to convert it back so I can edit the data chart.
Is it possible to insert shape and add the shape to already existing picture inserted from a file like PNG, JPG, GIF. I am looking for merging the shape and the picture in ONE image, not just grouping them together.
Alternatively is there a way to group two objects in Excel permanently so that no ungrouping is possible?
It is not possible to draw images in Excel. You can only import images.
I am trying to add colored vertical band to a chart in excel programatically using vba macro.
I have a chart that contains some numbers x-axis from 1 - 50 and I want to add a colored vertical band from 1 - 10 and another one from 10 - 20 with different color and so on.
Any help or clue
This solution uses an image for the plot area background.
This line of code sets the background image. Be sure to update the sheet reference, chart name, and file name as necessary.
ActiveSheet.ChartObjects("Chart 1").Chart.PlotArea.Format.Fill.UserPicture "C:\background.png"
I use MS Paint to create the various background images required. Here are the steps:
Create a new file and set the attributes to be 1 pixel high and X
pixels wide where X is the number of bands you need.
Set the zoom to as large as possible.
Using the Pencil tool, color each pixel as you would like the bands
to appear.
Resize the image by 500% horizontal and vertical; do this 2-3 times
to get an image big enough so it doesn't have to stretch in the
chart. (Note: leaving it small produces blending of the colored bars
which can be desirable.)
Save the file.
If your charts will have a variable number of points plotted, prepare several background images and then select the appropriate one in your code.