SuvKrish Report post Posted June 10, 2013 How to align (center) 'ChartNoDataText' value in fusion charts.? Share this post Link to post Share on other sites
Guest Sumedh Report post Posted June 11, 2013 Hi SuvKrish, Can you please elaborate more on your requirement? By default, if you set any string for "ChartNoDataText", it will aligned in the center. For more information, please refer this URL: http://docs.fusioncharts.com/charts/contents/advanced/ChartMessages.html Share this post Link to post Share on other sites
SuvKrish Report post Posted June 11, 2013 Hi Sumedh, Thanks for your reply. My problem is I have to display charts name in first line and message should be in second line (message is lengthier than report name). Both should be center aligned. Its aligned correctly in Mozilla and IE. But not in Chrome. eg: Chart Name No data to display for your condition Thanks Suvarna Share this post Link to post Share on other sites
Haritha Report post Posted June 13, 2013 Hi Suvarna, If you want to display charts name in first line and message should be in second line like you have mentioned in the example, you may need to use "\n" inside the configure() function. Eg. myChart.configure( "ChartNoDataText", " Chart Name \n No data to display for your condition"); The "\n" is used to move the cursor to the next line before it starts writing again. Empty spaces are given before the chart name for the alignment to work correctly in chrome also. These empty spaces, however, are ignored by IE and Firefox. Hence, the alignment now works for all the browsers. Hope this helps. Share this post Link to post Share on other sites
SuvKrish Report post Posted June 14, 2013 Hi Haritha, Thanks a lot ..It works for me. Cheers Suvarna Share this post Link to post Share on other sites
BinayakGoyall Report post Posted March 31, 2016 Hi Haritha, What if my requirement is to left align this message, something like Chart Name No data to display for your condition Thank, Binayak Share this post Link to post Share on other sites
Gagan Sikri Report post Posted April 6, 2016 Hi It is not possible to change `dataEmptyMessage` alignment, error messages in FusionCharts are aligned to center of canvas. Though, you can change cosmetics of message using available attributes. Please refer to this JSFiddle sample for the same: http://jsfiddle.net/s7t8F/1350/ Share this post Link to post Share on other sites