Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

X2Max Plug-in help...

Featured Replies

I am trying to produce the GRID and labels to my DAY VIEW with the X2Max. The code is below:

I need to have times on left and right and Rooms on the top and bottom. How do I get my first minor tick to be NULL. As you can see in my CODE, they (the minor and major times) are stacked on TOP of each other. Are there any other way to optimize this code that you see? My thought is once I get the PRIMARY GRID generated, I can then add some variables to change it. For example DayStartTime, DayEndTime, TimeUnit (5,10,15,20,30,60 minute blocks). Would be better to divide the grid into categories? Like one chart drawing per column?

Again I appreciate any help you can offer ;-)

Don

--------------------------------------------------

OpenDrawing(850;560)

OpenChart(50;30;750;500;on)

ChartData(

0:00 0:00) // NULL

GanttChart(label+horizontal;0)

// set up axes

Scaling(x;linear;0;6;6)

Scaling(y;linear;8:30;13:30;hour;minute10)

ScalingOptions(y;on) // y-scaling from top to bottom

AxisMajorTicks(y;0;1;black;;out)

AxisMinorTicks(y;0;1;black;;out)

AxisMajorTickLabelTexts(y;"|h:mm|")

AxisMajorTickLabelStyle(all;"Verdana";10;bold)

AxisMinorTickLabelStyle(all;"Verdana";10)

AxisMinorTickLabelTexts(y;"|:mm|")

AxisOptions(y;;on)

AxisMajorTicks(x;1) // hide x-axis tick marks

AxisMajorTickLabelOptions(x;;;2) // move labels down by 2-pixels

AxisOptions(x;;on) // move x-axis to the top

AxisMajorTickLabelOptions(x;;3;-2)

AxisMajorTickLabelTexts(x;"Room A";"Room B";"Room C";"Room D";

"Room E";"Room F";"Room G")

// set up grid

GridFrame()

MajorGridLineColors(x;y;darkGray)

MinorGridLineColors(all;all;lightGray)

MajorGridStripeColors(y;x;;;;;;255 235 235;255 235 235)

MajorGridStripePatterns(y;x;transparent)

CloseChart()

OpenChart(50;30;750;500;on)

ChartData(

0:00 0:00) // NULL

GanttChart(label+horizontal;0)

// set up axes

Scaling(x;linear;0;6;6)

Scaling(y;linear;8:30;13:30;hour;minute10)

ScalingOptions(y;on) // y-scaling from top to bottom

AxisMajorTicks(y;0;1;black;;out)

AxisMinorTicks(y;0;1;black;;out)

AxisMajorTickLabelTexts(y;"|h:mm|")

AxisMajorTickLabelStyle(all;"Verdana";10;bold)

AxisMinorTickLabelStyle(all;"Verdana";10)

AxisMinorTickLabelTexts(y;"|:mm|")

AxisMajorTicks(x;1) // hide x-axis tick marks

AxisMajorTickLabelOptions(x;;;2) // move labels down by 2-pixels

AxisMajorTickLabelOptions(x;;3;2)

AxisMajorTickLabelTexts(x;"Room A";"Room B";"Room C";"Room D";

"Room E";"Room F";"Room G")

// set up grid

GridFrame()

MajorGridLineColors(x;y;darkGray)

MinorGridLineColors(all;all;lightGray)

MajorGridStripeColors(y;x;;;;;;255 235 235;255 235 235)

MajorGridStripePatterns(y;x;transparent)

CloseChart()

CloseDrawing()

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.