摘要
SVG是一套基于XML的二维图形描述语言,可以用来描述矢量图形、图像及文字等图形对象。这些图形对象可以被分组、加入式样、被转换或者用来构成其他的对象。XSLT是一种把一个XML文档转换为另一个XML文档的语言。该文在简要介绍了SVG及其相关的技术后,重点介绍了一种基于XML、SVG和XSLT等技术的统计图表定义方法。使用这个方法可以把统计数据及其图表布局定义为XML文档,并利用XSLT程序将它们转换为能够表示饼图、条形图和折线图等统计图表的SVG图形文档。
SVG is a language for describing2D graphics based on XML.SVG can describe three types of graphic ob-jects:vector graphic shapes,images and text.These graphical objects can be grouped,styled,transformed and composed into previously rendered objects.XSLT is a language for transforming XML documents into other XML documents.This paper describes a XML -based statistic chart definition method using SVG and XSLT after briefly introducing the SVG and other relative techniques.The definition of statistic data and its chart layout can be defined as XML files using this method.These XML files can be transformed into a SVG file which can describe statistic charts such as Pie,Bar and Plot.
出处
《计算机工程与应用》
CSCD
北大核心
2002年第17期33-36,共4页
Computer Engineering and Applications
基金
国家自然科学基金资助项目(编号:60173058)