If you're using asgallant's last suggestion, you just need to get the range of your dates and then set it to the first and last of the month. Here's a simple jsfiddle that does it: http://jsfiddle.net/8v5ehrky/
On Tue Dec 02 2014 at 5:07:01 AM Schabagh <[email protected]> wrote: > Hi, > > how my data are structured can you see hier: > > > https://groups.google.com/forum/#!topic/google-visualization-api/0wX3wdz11I4 > > Now I must fill the missing days automaticaly? Is taht possible? > > Thanks > > > Am Montag, 1. Dezember 2014 19:42:51 UTC+1 schrieb Sergey: >> >> Yes, I understand what your problem is. I'm saying that you can set the >> minValue and maxValue options explicitly. If you would share some code, it >> would be much easier for us to understand each other. >> >> On Mon Dec 01 2014 at 1:36:54 PM Schabagh <[email protected]> wrote: >> >>> that is exactly my problem. My minValue is for example 27 and maxValue >>> 30 but I need the values from 1-31 on my x-axis, >>> >>> >>> Am Montag, 1. Dezember 2014 19:16:45 UTC+1 schrieb Sergey: >>>> >>>> If you are using the datetime format, then you will need to set the >>>> hAxis.minValue and hAxis.maxValue to the first and last of whichever month >>>> you're showing. I can tell you more detail if you show me an example >>>> DataTable. >>>> >>>> Bars will take up as much room as they can. You can prevent this by >>>> setting bars.groupWidth to an explicit size, but this is not recommended. >>>> Here is an example of that: http://jsfiddle.net/yc8m6hhj/ >>>> >>>> On Mon Dec 01 2014 at 1:06:19 PM Schabagh <[email protected]> wrote: >>>> >>>>> Hello Sergey, >>>>> >>>>> thanks for reply: >>>>> >>>>> 1. My data with wich I represent the days are in DateTime-Format. >>>>> 2. You can compare the Image1 and Image2. >>>>> >>>>> Thanks >>>>> >>>>> >>>>> Am Montag, 1. Dezember 2014 17:56:23 UTC+1 schrieb Sergey: >>>>>> >>>>>> Hi Schabagh, >>>>>> >>>>>> 1. It looks like you are using strings to represent your days. If you >>>>>> use numbers instead, then you can just set the hAxis.minValue and >>>>>> hAxis.maxValue options to include 1 and 31. >>>>>> 2. The bar widths should not change. Can you show a case for when >>>>>> this happens? Or do you mean that it changes when your data does? If you >>>>>> mean the latter, then there is no way to prevent it. >>>>>> >>>>>> On Mon Dec 01 2014 at 9:46:22 AM Schabagh <[email protected]> wrote: >>>>>> >>>>> Hello Forum, >>>>>>> >>>>>>> I have a ColumnChart. This chart could have 1-31 days as Image1 >>>>>>> below shows. My Questions: >>>>>>> >>>>>>> 1. how can I fill the missing days automatically if I have less than >>>>>>> 31 days? For example: I have data for days 27, 28, 29 but I would >>>>>>> like to have always 1, 2, 3,..., 27, 28, 29, 30, 31 on the X-Axis. This >>>>>>> means, I must to show the rest of the days without value or 0-Values >>>>>>> (Image3). >>>>>>> 2. How can I show the bars always with the same width? >>>>>>> >>>>>>> Thanks >>>>>>> >>>>>>> -- >>>>>>> You received this message because you are subscribed to the Google >>>>>>> Groups "Google Visualization API" group. >>>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>>> send an email to google-visualization-api+unsub >>>>>>> [email protected]. >>>>>>> >>>>>> To post to this group, send email to [email protected] >>>>>>> . >>>>>> >>>>>> >>>>>>> Visit this group at http://groups.google.com/group >>>>>>> /google-visualization-api. >>>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>>> >>>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "Google Visualization API" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to [email protected]. >>>>> To post to this group, send email to [email protected]. >>>>> Visit this group at http://groups.google.com/group >>>>> /google-visualization-api. >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Google Visualization API" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at http://groups.google.com/ >>> group/google-visualization-api. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- > You received this message because you are subscribed to the Google Groups > "Google Visualization API" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to > [email protected]. > Visit this group at > http://groups.google.com/group/google-visualization-api. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/d/optout.
