1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585
|
object MainForm: TMainForm
Left = 371
Height = 601
Top = 283
Width = 1136
Caption = 'MainForm'
ClientHeight = 601
ClientWidth = 1136
OnCreate = FormCreate
LCLVersion = '2.1.0.0'
object Chart1: TChart
Left = 208
Height = 601
Top = 0
Width = 502
AxisList = <
item
Grid.Color = clSilver
Marks.LabelBrush.Style = bsClear
Minors = <>
Title.LabelFont.Orientation = 900
Title.LabelBrush.Style = bsClear
end
item
Grid.Color = clSilver
Alignment = calBottom
Marks.LabelBrush.Style = bsClear
Minors = <>
Title.LabelBrush.Style = bsClear
end>
BackColor = clWhite
Foot.Brush.Color = clBtnFace
Foot.Font.Color = clBlue
Title.Brush.Color = clBtnFace
Title.Font.Color = clBlue
Title.Text.Strings = (
'TAChart'
)
OnAfterPaint = Chart1AfterPaint
Align = alClient
object Chart1LineSeries1: TLineSeries
Title = 'Line'
ZPosition = 1
AxisIndexX = 1
AxisIndexY = 0
LinePen.Color = clBlue
Pointer.Brush.Color = clBlue
Pointer.HorizSize = 6
Pointer.Style = psCircle
Pointer.VertSize = 6
Pointer.Visible = True
ShowPoints = True
Stacked = True
Source = RandomChartSource1
XErrorBars.Pen.Color = clBlue
XErrorBars.Visible = True
YErrorBars.Pen.Color = clBlue
YErrorBars.Visible = True
end
object Chart1BSplineSeries1: TBSplineSeries
Active = False
Title = 'BSpline'
ZPosition = 2
AxisIndexX = 1
AxisIndexY = 0
Source = RandomChartSource1
Pen.Color = clRed
Pointer.Brush.Color = clRed
Pointer.HorizSize = 6
Pointer.Style = psDiamond
Pointer.VertSize = 6
Pointer.Visible = True
XErrorBars.Pen.Color = clRed
XErrorBars.Visible = True
YErrorBars.Pen.Color = clRed
YErrorBars.Visible = True
end
object Chart1CubicSplineSeries1: TCubicSplineSeries
Active = False
Title = 'Cubic spline'
ZPosition = 3
AxisIndexX = 1
AxisIndexY = 0
Pointer.Brush.Color = clSilver
Pointer.Visible = True
Source = RandomChartSource1
XErrorBars.Visible = True
YErrorBars.Visible = True
end
object Chart1FitSeries1: TFitSeries
Active = False
Title = 'Fit'
ZPosition = 4
AxisIndexX = 1
AxisIndexY = 0
Pen.Color = clGreen
Pointer.Brush.Color = clGreen
Pointer.HorizSize = 3
Pointer.Pen.Color = clGreen
Pointer.Style = psTriangle
Pointer.VertSize = 3
Pointer.Visible = True
Source = RandomChartSource1
XErrorBars.Pen.Color = clGreen
XErrorBars.Visible = True
YErrorBars.Pen.Color = clGreen
YErrorBars.Visible = True
end
end
object Panel1: TPanel
Left = 0
Height = 601
Top = 0
Width = 208
Align = alLeft
BevelOuter = bvNone
ClientHeight = 601
ClientWidth = 208
TabOrder = 1
object CbRotated: TCheckBox
AnchorSideLeft.Control = Panel1
AnchorSideTop.Side = asrBottom
AnchorSideBottom.Control = Panel1
AnchorSideBottom.Side = asrBottom
Left = 8
Height = 19
Top = 574
Width = 61
Anchors = [akLeft, akBottom]
BorderSpacing.Left = 8
BorderSpacing.Top = 8
BorderSpacing.Bottom = 8
Caption = 'Rotated'
OnChange = CbRotatedChange
TabOrder = 0
end
object GbXErr: TGroupBox
AnchorSideLeft.Control = Panel1
AnchorSideTop.Control = RgChartSource
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = Panel1
AnchorSideRight.Side = asrBottom
Left = 8
Height = 153
Top = 109
Width = 192
Anchors = [akTop, akLeft, akRight]
AutoSize = True
BorderSpacing.Top = 8
BorderSpacing.Around = 8
Caption = 'x error bars'
ClientHeight = 133
ClientWidth = 188
TabOrder = 1
object RbXErrConst: TRadioButton
AnchorSideLeft.Control = CbXErrShow
AnchorSideTop.Control = CbXErrShow
AnchorSideTop.Side = asrBottom
Left = 16
Height = 19
Top = 33
Width = 66
BorderSpacing.Top = 10
Caption = 'constant'
Checked = True
OnChange = RbXErrConstChange
TabOrder = 4
TabStop = True
end
object RbXErrPercent: TRadioButton
AnchorSideLeft.Control = RbXErrConst
AnchorSideTop.Control = RbXErrConst
AnchorSideTop.Side = asrBottom
Left = 16
Height = 19
Top = 56
Width = 79
BorderSpacing.Top = 4
Caption = 'percentage'
OnChange = RbXErrPercentChange
TabOrder = 0
end
object RbXErrChartSource: TRadioButton
AnchorSideLeft.Control = RbXErrConst
AnchorSideTop.Control = RbXErrPercent
AnchorSideTop.Side = asrBottom
Left = 16
Height = 19
Top = 79
Width = 72
BorderSpacing.Top = 4
Caption = 'individual'
OnChange = RbXErrChartSourceChange
TabOrder = 1
end
object EdXErrConst: TFloatSpinEdit
AnchorSideLeft.Control = RbXErrPercent
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = RbXErrConst
AnchorSideTop.Side = asrCenter
AnchorSideRight.Control = GbXErr
AnchorSideRight.Side = asrBottom
Left = 119
Height = 23
Top = 31
Width = 61
Alignment = taRightJustify
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Left = 24
BorderSpacing.Right = 8
DecimalPlaces = 1
Increment = 0.1
MaxValue = 2
MinValue = 0
OnChange = EdXErrConstChange
TabOrder = 2
Value = 1
end
object EdXErrPercent: TFloatSpinEdit
AnchorSideLeft.Control = RbXErrPercent
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = RbXErrPercent
AnchorSideTop.Side = asrCenter
AnchorSideRight.Control = EdXErrConst
AnchorSideRight.Side = asrBottom
Left = 119
Height = 23
Top = 54
Width = 61
Alignment = taRightJustify
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Left = 24
DecimalPlaces = 1
Increment = 2
MinValue = 0
OnChange = EdXErrPercentChange
TabOrder = 3
Value = 10
Visible = False
end
object CbXErrShow: TCheckBox
AnchorSideLeft.Control = GbXErr
AnchorSideTop.Control = GbXErr
Left = 16
Height = 19
Top = 4
Width = 102
BorderSpacing.Left = 16
BorderSpacing.Top = 4
Caption = 'Show error bars'
Checked = True
OnChange = CbXErrShowChange
State = cbChecked
TabOrder = 5
end
object CbXErrDifferent: TCheckBox
AnchorSideLeft.Control = CbXErrShow
AnchorSideTop.Control = RbXErrChartSource
AnchorSideTop.Side = asrBottom
Left = 16
Height = 19
Top = 106
Width = 135
BorderSpacing.Top = 8
BorderSpacing.Bottom = 8
Caption = 'asymmetric error bars'
OnChange = CbXErrDifferentChange
TabOrder = 6
end
end
object GbYErr: TGroupBox
AnchorSideLeft.Control = Panel1
AnchorSideTop.Control = GbXErr
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = Panel1
AnchorSideRight.Side = asrBottom
Left = 8
Height = 153
Top = 278
Width = 192
Anchors = [akTop, akLeft, akRight]
AutoSize = True
BorderSpacing.Top = 8
BorderSpacing.Around = 8
Caption = 'y error bars'
ClientHeight = 133
ClientWidth = 188
TabOrder = 2
object RbYErrConst: TRadioButton
AnchorSideLeft.Control = CbYErrShow
AnchorSideTop.Control = CbYErrShow
AnchorSideTop.Side = asrBottom
Left = 16
Height = 19
Top = 33
Width = 66
BorderSpacing.Top = 10
Caption = 'constant'
Checked = True
OnChange = RbYErrConstChange
TabOrder = 4
TabStop = True
end
object RbYErrPercent: TRadioButton
AnchorSideLeft.Control = CbYErrShow
AnchorSideTop.Control = RbYErrConst
AnchorSideTop.Side = asrBottom
Left = 16
Height = 19
Top = 56
Width = 79
BorderSpacing.Top = 4
Caption = 'percentage'
OnChange = RbYErrPercentChange
TabOrder = 0
end
object RbYErrChartSource: TRadioButton
AnchorSideLeft.Control = CbYErrShow
AnchorSideTop.Control = RbYErrPercent
AnchorSideTop.Side = asrBottom
Left = 16
Height = 19
Top = 79
Width = 72
BorderSpacing.Top = 4
Caption = 'individual'
OnChange = RbYErrChartSourceChange
TabOrder = 1
end
object EdYErrConst: TFloatSpinEdit
AnchorSideLeft.Control = RbYErrPercent
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = RbYErrConst
AnchorSideTop.Side = asrCenter
AnchorSideRight.Control = GbYErr
AnchorSideRight.Side = asrBottom
Left = 119
Height = 23
Top = 31
Width = 61
Alignment = taRightJustify
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Left = 24
BorderSpacing.Right = 8
DecimalPlaces = 1
Increment = 0.1
MaxValue = 2
MinValue = 0
OnChange = EdYErrConstChange
TabOrder = 2
Value = 1
end
object EdYErrPercent: TFloatSpinEdit
AnchorSideLeft.Control = RbYErrPercent
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = RbYErrPercent
AnchorSideTop.Side = asrCenter
AnchorSideRight.Control = EdYErrConst
AnchorSideRight.Side = asrBottom
Left = 119
Height = 23
Top = 54
Width = 61
Alignment = taRightJustify
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Left = 24
DecimalPlaces = 1
Increment = 2
MinValue = 0
OnChange = EdYErrPercentChange
TabOrder = 3
Value = 10
Visible = False
end
object CbYErrShow: TCheckBox
AnchorSideLeft.Control = GbYErr
AnchorSideTop.Control = GbYErr
Left = 16
Height = 19
Top = 4
Width = 102
BorderSpacing.Left = 16
BorderSpacing.Top = 4
Caption = 'Show error bars'
Checked = True
OnChange = CbYErrShowChange
State = cbChecked
TabOrder = 5
end
object CbYErrDifferent: TCheckBox
AnchorSideLeft.Control = CbYErrShow
AnchorSideTop.Control = RbYErrChartSource
AnchorSideTop.Side = asrBottom
Left = 16
Height = 19
Top = 106
Width = 135
BorderSpacing.Top = 8
BorderSpacing.Bottom = 8
Caption = 'asymmetric error bars'
OnChange = CbYErrDifferentChange
TabOrder = 6
end
end
object RgChartSource: TRadioGroup
AnchorSideLeft.Control = Panel1
AnchorSideTop.Control = Panel1
Left = 8
Height = 85
Top = 8
Width = 185
AutoFill = True
AutoSize = True
BorderSpacing.Around = 8
Caption = 'Chart source'
ChildSizing.LeftRightSpacing = 16
ChildSizing.VerticalSpacing = 4
ChildSizing.EnlargeHorizontal = crsHomogenousChildResize
ChildSizing.EnlargeVertical = crsHomogenousChildResize
ChildSizing.ShrinkHorizontal = crsScaleChilds
ChildSizing.ShrinkVertical = crsScaleChilds
ChildSizing.Layout = cclLeftToRightThenTopToBottom
ChildSizing.ControlsPerLine = 1
ClientHeight = 65
ClientWidth = 181
ItemIndex = 0
Items.Strings = (
'RandomChartSource'
'ListChartSource'
'UserDefinedChartSource'
)
OnClick = RgChartSourceClick
TabOrder = 3
end
object GbErrorBarStyle: TGroupBox
AnchorSideLeft.Control = GbYErr
AnchorSideTop.Control = GbYErr
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = GbYErr
AnchorSideRight.Side = asrBottom
Left = 16
Height = 78
Top = 447
Width = 176
Anchors = [akTop, akLeft, akRight]
AutoSize = True
BorderSpacing.Top = 8
BorderSpacing.Bottom = 8
BorderSpacing.Around = 8
Caption = 'Error bar style'
ClientHeight = 58
ClientWidth = 172
TabOrder = 4
object EdErrPenWidth: TSpinEdit
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = GbErrorBarStyle
AnchorSideRight.Control = GbErrorBarStyle
AnchorSideRight.Side = asrBottom
Left = 103
Height = 23
Top = 4
Width = 61
Alignment = taRightJustify
Anchors = [akTop, akRight]
BorderSpacing.Left = 24
BorderSpacing.Top = 4
BorderSpacing.Right = 8
MaxValue = 5
MinValue = 1
OnChange = EdErrPenWidthChange
TabOrder = 0
Value = 1
end
object LblErrLineWidth: TLabel
AnchorSideLeft.Control = GbErrorBarStyle
AnchorSideTop.Control = EdErrPenWidth
AnchorSideTop.Side = asrCenter
Left = 16
Height = 15
Top = 8
Width = 56
BorderSpacing.Left = 16
BorderSpacing.Top = 12
Caption = 'Pen width:'
ParentColor = False
end
object Label1: TLabel
AnchorSideLeft.Control = LblErrLineWidth
AnchorSideTop.Control = CbErrPenStyle
AnchorSideTop.Side = asrCenter
Left = 16
Height = 15
Top = 32
Width = 50
Caption = 'Pen style:'
ParentColor = False
end
object CbErrPenStyle: TChartComboBox
AnchorSideLeft.Control = EdErrPenWidth
AnchorSideTop.Control = EdErrPenWidth
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = EdErrPenWidth
AnchorSideRight.Side = asrBottom
Left = 103
Height = 22
Top = 28
Width = 61
Options = [ccoPatternBrush, ccoPatternPen]
PenPattern = '1|1'
PointerStyle = psNone
BorderSpacing.Top = 1
BorderSpacing.Bottom = 8
ItemHeight = 16
ItemIndex = 0
TabOrder = 1
OnChange = CbErrPenStyleChange
end
end
end
object ChartListbox1: TChartListbox
Left = 710
Height = 593
Top = 4
Width = 140
Chart = Chart1
CheckStyle = cbsRadiobutton
Align = alRight
BorderSpacing.Top = 4
BorderSpacing.Right = 4
BorderSpacing.Bottom = 4
ItemHeight = 0
TabOrder = 2
end
object StringGrid1: TStringGrid
Left = 854
Height = 593
Top = 4
Width = 278
Align = alRight
BorderSpacing.Around = 4
ColCount = 4
DefaultColWidth = 68
FixedCols = 0
TabOrder = 3
OnPrepareCanvas = StringGrid1PrepareCanvas
Cells = (
4
0
0
'x'
1
0
'y'
2
0
'dx'
3
0
'dy'
)
end
object RandomChartSource1: TRandomChartSource
PointsNumber = 10
RandSeed = 56490104
XMax = 10
XMin = 0
YMax = 10
YMin = 0
XErrorBarData.Kind = ebkConst
XErrorBarData.ValuePlus = 1
YErrorBarData.Kind = ebkConst
YErrorBarData.ValuePlus = 1
left = 353
top = 136
end
object ListChartSource1: TListChartSource
left = 353
top = 204
end
object UserDefinedChartSource1: TUserDefinedChartSource
OnGetChartDataItem = UserDefinedChartSource1GetChartDataItem
left = 353
top = 280
end
end
|