Jump to content
Software FX Community

Bar Chart and Volume setting

User (Legacy)

Recommended Posts

I want the bars on my chart to have no gaps inbetween

I set the volume for both the chart and series to 100 percent

My question is, why are there random gaps when I zoom in?

Actually, they appear to be uniformly spaced.

Is there some lame conversion/truncation that misses certain pixels?

What can I do to fix this?

Here is some sample code:

NumDataPts = 1867

StepSixe = NumDataPts / 10

With FormGraph.ChartFX1

.Scrollable = False

.Volume = 100 'no gaps between bars

.MultipleColors = True

.OpenDataEx COD_VALUES Or COD_REMOVE, 1, NumDataPts

.Series(0).Gallery = BAR

.Series(0).Volume = 100 ' NO GAPS PLEASE!!!


.Axis(AXIS_X).Title = "Time (mS)"

.Axis(AXIS_X).TitleColor = RGB(255, 255, 255)

.Axis(AXIS_X).STEP = StepSize

.Axis(AXIS_Y).Title = "dB"

.Axis(AXIS_Y).TitleColor = RGB(255, 255, 255)

.Axis(AXIS_Y).AutoScale = True


End With

Link to comment
Share on other sites

This is the space for borders. Just add borders to the bars, you can make

them the same color.

ChartFX1.Border = True

ChartFX1.BorderColor = ChartFX1.Color(0)


- If you have more than one series, just assign the BorderColor of each

series to the fill color of the same series.

- Setting the global volume to 100 is enough if no volume is explicitly to

each series.



Software FX, Inc.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...