blanco

Formatting text in SSGrid

Recommended Posts

Hi,

 

I am trying to format some text in an SSGrid and seem to be missing something.

The code I am using is below.

Can anyone point out what I am doing wrong.

Ultimately I want to use html in the label to create a hyperlink, does anyone have an example of this?

 

Thanks

<script type="text/javascript">
<!--
   var myChart = new FusionCharts("SSGrid", "myChartId", "400", "400", "0");
   myChart.setXMLData("<chart caption='Staffing Report - Summary' xAxisName='' yAxisName='' baseFontSize='10' colorBoxWidth='0' colorBoxHeight='0' numberItemsPerPage='5' plotGradientColor=' ' >
	<set label='Closed' tooltext='Closed' value='5'  />
	<set label='Today' tooltext='Today' value='3'  />
	<styles>
		<definition>
			<style name='mystyle' type='font' underline='1' color='FF0000' isHTML='1' />
		</definition>
		<application>
			<apply toObject='datalabels' styles='mystyle' />
		</application>
	</styles><
	/chart>");
 myChart.render("chartContainer");
        // -->
        
        </script>

Share this post


Link to post
Share on other sites

Hey,

 

Welcome to FusionCharts Forum post.

 

Grid component does not support Style features. :(

 

If you would like to display the label/value using a different color, please try using "baseFontColor" attribute. Also, it is not possible to hyperlink the data labels using FusionCharts currently.

Share this post


Link to post
Share on other sites

Oh ok.

Is this functionality that has been removed then?

I am sure I have seen posts from way back where this was possible.

Are there any plans to change this? 

This may well be a show stopper for me on using these charts.

Share this post


Link to post
Share on other sites

Hi,

 

The functionality of defining hyperlink to data labels was not a feature supported by FusionCharts but was a workaround provided to achieve the desired functionality.

 

I'm afraid, you will not be able to use the same workaround anymore since its support has been removed due to some security reasons.

 

Hope this helps.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now