I make 2 excel files with chart, one in excel 2003 second in 2007. Use same code, but colors in charts different.
use lib 7.0.2 and try 7.0.3 but no different.
so I set the color.
java.awt.Color red = new java.awt.Color( 192, 80, 77 );
com.aspose.cells.Color colorRed = Color.fromArgb( red.getRed(), red.getGreen(), red.getBlue() );
chart.getNSeries().get( 0 ).getArea().setForegroundColor( colorRed );
java.awt.Color blue = new java.awt.Color( 79, 129, 189 );
com.aspose.cells.Color colorBlue = Color.fromArgb( blue.getRed(), blue.getGreen(), blue.getBlue() );
chart.getNSeries().get( 1 ).getArea().setForegroundColor( colorBlue );
Why are different colors in different formats Excel?
Before use another library, and colors look the same(Aspose.cells 220.127.116.11).
Thanks, this helped
Thanks for your posting and using Aspose.Cells for Java.
We are glad to know your issue is now resolved. Please feel free to post if you find any other issue. We will be glad to help you further.
Please also check the updated links for your reference.
We will also advise you to download and try the latest Aspose.Cells for Java demos to see the running examples of various enhancements and new features supported by it. It will also help you to fix or upgrade the old code of your existing applications.