Skrypt SQL wykresu kołowego 2-W z wieloma seriami danych
-------------------------------------------------------------------------------------------------------------------------------------------------------------
--
Skrypt SQL wykresu kołowego 2-W z wieloma seriami danych
--
-- Notes: The query below will work on the following
database servers:
-- MS SQL
Server, Sybase ASE, Sybase IQ, Sybase Anywhere, MySQL,
PostreSQL
--
-- ORACLE: To make the query below work in Oracle, add
" FROM DUAL" at the end of each
SELECT
-- DB2: To make the query below work in DB2, add "
FROM SYSIBM.SYSDUMMY1" at the end of each SELECT
-------------------------------------------------------------------------------------------------------------------------------------------------------------
select 'A'
as category,
40
as s1,
40
as s2
union
select 'B'
as category,
55
as s1,
14
as s2
union
select 'C'
as category,
3
as s1,
23
as s3
union
select 'D'
as category,
45
as s1,
16
as s2
union
select 'E'
as category,
15
as s1,
23
as s2
GO
.setResultSettings
'Index=1,
CategoryFields="[category]",
SeriesFields="[s1],[s2]",
ShowChart=true,
ShowToolbar=true,
Paging=true,
Split=197,
Chart="{pie,pie}",
RotX=324,
RotY=0,
RotZ=0,
Zoom=59.0,
ScaleData=true,
ShowLegend=true,
ShowGrid=true,
Title="2D
Multiple Pie Chart",
PieExplode=0.0,
GroupSmallValues=true,
SmallValuesThreshold=3.0,
PieLabelDistance=4.0,
PieShowLines=false,
LineWidth=1.0,
Width=16.0,
Height=10.0,
Depth=12.0,
SeriesSpacing=0.5,
CategorySpacing=0.5,
Font="Arial-6",
TopColor="#D7DCF5",
BottomColor="#EBF0F5",
PanX=2.8999991,
PanY=6.399999,
Lighting=Default,
View2D=true,
StackedPercent=false,
ShowValueAxis=true,
ShowCategoryAxis=true,
ShowSeriesAxis=false,
ValueAxisNumberFormat="###0",
CategoryAxisNumberFormat="#,##0",
NumericCategoryAxis=false,
MergeAxis=true,
SeriesAlias="default,default",
SeriesSubType=",",
SeriesColumnType="Cube,Cube",
SeriesMin="default,default",
SeriesMax="default,default",
SeriesColor="#333333,default",
SeriesFunctionMetaData="true,true",
LegendPosition=Top
Right,
LegendWidthType=Exact,
LegendWidth=100,
LegendHeightType=Fit,
LegendHeight=160,
ShowFixedCategoryCount=true,
FixedCategoryCount=0'
|