Fusioncharts usage Problems and Solutions (4)-fusioncharts FAQs

Source: Internet
Author: User

First 3Article, We have summarizedFusioncharts chartSomeFAQs)AndSolution, This article continues to discuss some of the complexErrorAnd solutions.

Problem description: when using fusioncharts, I want to automatically generate a chart on the server side within a given interval and send the newly generated chart by email?

Solution:Note that currently, fusioncharts does not support sending charts directly by email. However, the fusioncharts chart component allows you to export images as images and save them on the server. Therefore, you can write your own scripts and then automatically send the saved images by email.

Question: Why can't I modify the chart information after the fusioncharts chart is rendered?

Solution:So far, when the fusioncharts chart is rendered, you cannot directly set the chart information. However, you can use specialized JavaScript Functions to modify the information of the rendered chart. The JavaScript function syntax is as follows:

Fusioncharts ("chartdomid"). Ref. showchartmessage ("your message as string ");

Example:

Fusioncharts ("mychartid"). Ref. showchartmessage ("message ");

Problem description: The rendering value of the fusioncharts chart exceeds the maximum value set by the yaxismaxvalue attribute. Why does the maximum value still not work?

Solution:Note that if the value of any data in XML exceeds the maximum value set by the yaxismaxvalue attribute, fusioncharts automatically adjusts the Y axis scale to adapt to and display all data values in the chart canvas, therefore, the rendering value of the chart does not work.

Problem description: how to set the same color for all fusioncharts column charts?

Solution:Set a single or desired color in the palettecolors attribute of the <chart> element.

Question: How can I show only the vertices/anchors of the fusioncharts linear chart, but hide all the lines? Try Setting Alpha = '0'. It still does not work.

Solution:Set linealpha = '0. 1' in the <chart> element or <dataset> element of the chart data (a value close to zero but not zero ). In this way, the lines drawn by the chart data are almost invisible, but the points are displayed normally.

Question: How can I display a legend on the fusioncharts pie chart (flash and JavaScript?

Solution:In the <chart> element, set the showlegend attribute to 1 to display the pie chart legend.

Problem description: I have four fusioncharts charts of the same width, but the charts are rendered in canvas coxes of different widths. How can I modify the canvas coxes width of the chart?

Solution:Set the maximum value for the canvasleftmargin, canvasrightmargin, canvastopmargin, and canvasbottommargin attributes in the <chart> element.

Problem description: the label of fusioncharts 2D bar chart is too long. What should I do?

Solution:You can configure the chart according to the maxlabelwidthpercent attribute in the <chart> element to limit the label length of the bar chart. This attribute value is expressed as a percentage. It calculates the maximum width of a tag by percentage based on the total width of the chart. This determines the maximum horizontal space that data labels can occupy. If the data tag is wider than the specified percentage width, the data tag is overwritten or automatically truncated. If the label length is smaller than the specified width, this setting can be ignored.

Additional reading:

Fusioncharts historical Version Download summary and update Introduction

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.