ss_array_data.builder

来自「FusionCharts 是一个免费的图形显示组件」· BUILDER 代码 · 共 11 行

BUILDER
11
字号
#Creates xml with values for sales data of products 
#along with their names.
#The values required for building the xml is obtained as parameter arr_data
#It expects an array in which each element is 
#itself an array with first element as label and second element as value
xml = Builder::XmlMarkup.new
xml.graph(:caption=>'Sales by Product', :numberPrefix=>'$', :formatNumberScale=>'0',:decimalPrecision=>'0') do
	for item in arr_data
		xml.set(:name=>item[0], :value=>item[1],:color=>''+get_FC_color)
	end
end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?