dynamia-projects / chartjs-zk

ChartJS for ZK (java web framework)
http://www.dynamia.tools
Other
9 stars 3 forks source link

GridLines config in crated Axe not work #11

Open deveb1 opened 5 years ago

deveb1 commented 5 years ago

In the case of axis settings, gridlines are lost. Example, if I configure my Y axis, gridlines no display on it:

Dataset dataset = Dataset.Builder.init()
    .yAxisID("y-axeId")
    .label("lable")
    .data(sums)
    .build();

Axe yAxe = Axe.Builder.init()
        .id("y-axeId")
    .display(true)
    .build();

Horizontal gridLines are not displayed: image

If I add a setting for gridlines, then it does not work (does not work out any of the settings). The feeling that the setting is simply not visible to chart

Axe yAxe = Axe.Builder.init ()
       .id ("y-axeId")
       .display (true)
       .gridLines (Lists.newArrayList (
                        GridLine.Builder.init ()
                           .display (Boolean.TRUE)                                            
                           .drawTicks (Boolean.TRUE)
                           .color ("#FF0000")
                          .drawOnChartArea (Boolean.TRUE)
                      .build ())
)
      .build ();

the screenshot in this example is the same as above

marioserrano09 commented 5 years ago

Hi. Thanks for report this bug, I'm working in a new release and will fix this and other bugs.

El vie., 13 sep. 2019, 1:40 a. m., deveb1 notifications@github.com escribió:

In the case of axis settings, gridlines are lost. Example, if I configure my Y axis, gridlines no display on it:

Dataset dataset = Dataset.Builder.init()

.yAxisID("y-axeId")

.label("lable")

.data(sums)

.build();

Axe yAxe = Axe.Builder.init()

    .id("y-axeId")

.display(true)

.build();

Vertical gridLines are not displayed: [image: image] https://user-images.githubusercontent.com/53943745/64842094-b28ac780-d609-11e9-8c6e-452f24a69f20.png

If you try to add a setting for gridlines, then it does not work (does not work out any of the settings). The feeling that the setting is simply not visible to chart

Axe yAxe = Axe.Builder.init ()

   .id ("y-axeId")

   .display (true)

   .gridLines (Lists.newArrayList (

                    GridLine.Builder.init ()

                       .display (Boolean.TRUE)

                       .drawTicks (Boolean.TRUE)

                       .color ("#FF0000")

                      .drawOnChartArea (Boolean.TRUE)

                  .build ())

)

  .build ();

the screenshot in this example is the same as above

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dynamia-projects/chartjs-zk/issues/11?email_source=notifications&email_token=ABH2XG7OJLUFB2IS4O34HIDQJMYWFA5CNFSM4IWMSAQKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HLFBOVQ, or mute the thread https://github.com/notifications/unsubscribe-auth/ABH2XG5K7X53GIAPM4M2JT3QJMYWFANCNFSM4IWMSAQA .

deveb1 commented 5 years ago

Thank you for your work. Really looking forward to a new release