Results 1 to 8 of 8

Thread: Line thickness of a 2D Line Graph

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Posts
    31
    Hi

    I have a graph produced from equations in my code and when it is displayed it is in 2 point (too thick). The property pages for MSChart are of no help so I was wondering what the code is for making the line 1 point?

    Thanks.

  2. #2
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    is this what you need:

    Code:
    Private Sub Form_Load()
        Line1.BorderWidth = 1
    End Sub
    NXSupport - Your one-stop source for computer help

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Posts
    31

    re

    Hi

    When I try that I get the eror message 'Method or data member not found'.

    Help!

  4. #4
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    what version of vb are you using?
    NXSupport - Your one-stop source for computer help

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Posts
    31

    re

    VB6

  6. #6
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    thats strange, it should work
    NXSupport - Your one-stop source for computer help

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Posts
    31

    re

    Hi

    Here is the code which creates the line:-

    With MSChart1
    .Plot.Axis(VtChAxisIdX).CategoryScale.Auto = True
    .Plot.AxisVtChAxisIdX).CategoryScale.DivisionsPerTick = q / 10
    .Plot.SeriesCollection(1).Position.Excluded = True 'hide time data

    .ChartType = VtChChartType2dLine

    .ChartData = Data()
    End With


    Thanks.

  8. #8
    Addicted Member P.S.W.'s Avatar
    Join Date
    Aug 2000
    Posts
    146
    In the MSChart Property Pages, click the tab that says "Series Color". Make sure the graph is set to be a line graph (you can set this from the "Chart" tab); now you can select the line thickness, pattern, and color of the line in the "Edge/Line" Section on that tab.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width