radzmar's Profile
| Website |
AcrobatUsers Community
|
| Blog |
LoveCycle
|
| Portfolio |
LoveCycle
|
| My Products |
Acrobat, Creative Suite, Illustrator, InDesign, LiveCycle ES
|
| Recent Code |
var nRows = Input.Table.ChartValues.instanceManager.count _Chart.setInstances(nRows)var nColumns = Input.Table.ChartValues[nRows -1].Col.instanceManager.count Chart[*].Stack._Bar[*].setInstances(nColumns)Chart[*].Labels._Label[*].setInstances(nColumns)for i=0 upto nRows -1 step 1 dofor j=0 upto nColumns -1 step 1 do var BarValue = Input.Table.ChartValues[i].Col[j].Amount var nColor = Choose(j+1, "238,0,0", ;Red ;"255,48,48", ;FireBrick "255,99,71", ;Tomato "255,127,80", ;Coral "255,140,0", ;DarkOrange "255,165,0", ;Orange "255,215,0", ;Gold "255,255,0", ;Yellow ;"238,238,0", ;Yellow2 "154,205,50") ;YellowGreen Chart[i].Stack.Bar[j].BarGraph.value.rectangle.fill.color.value = nColorChart[i].Stack.Bar[j].BarGraph.value.rectangle.edge.color.value = nColorvar ChartMod = UnitValue(BarValue, "in") / 25.4Chart[i].Stack.Bar[j].BarGraph.h = UnitValue(ChartMod, "in")Chart[i].Labels.Label[j].BarValue.h = UnitValue(ChartMod, "in")Chart[i].Labels.BarTotal = Input.Table.ChartValues[i].SumChart[i].Labels.BarLabel = Input.Table.ChartValues[i].Labelif(Input.Table.ChartValues[i].Col[j].Amount >= 3) thenChart[i].Labels.Label[j].BarValue.value.text.value = Input.Table.ChartValues[i].Col[j].AmountelseChart[i].Labels.Label[j].BarValue.value.text.value = ""endifvar ContainerHeight = UnitValue(Chart.h, "in")var ChartOffset = UnitValue(Input.Table.ChartValues[i].Sum, "in") / 25.4Chart[i].Stack.y = ContainerHeight - ChartOffsetChart[i].Labels.y = ContainerHeight - ChartOffset - UnitValue("5mm", "in")endforendfor
|
|
Stats
Last online 10/14/11
|