dwdata Posted January 3, 2008 Posted January 3, 2008 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()
Recommended Posts
This topic is 6237 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now