Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x Labels #65

Closed
ramstein74 opened this issue Nov 27, 2013 · 1 comment
Closed

x Labels #65

ramstein74 opened this issue Nov 27, 2013 · 1 comment

Comments

@ramstein74
Copy link

Hello i cannot get my months in the x axis

                        var month=[1354034656,
                                    1356626656,
                                    1359305056,
                                    1361983456,
                                    1364402656,
                                    1367081056,
                                    1369673056,
                                    1372351456,
                                    1374943456,
                                    1377621856,
                                    1380300256,
                                    1385570656];

        $scope.xAxisTickFormat = function(){
            return function(d){
              console.log(d);
                return d3.time.format('%x')(new Date(d));

            }
        }                            


<nvd3-stacked-area-chart
        margin="{left:80,top:0,bottom:30,right:10}"
        data="exampleData"
        id="exampleId"

        objectEquality="true"
        showLegend="true"
        interactive="true"
        tooltips="true"

        xAxisTickFormat="xAxisTickFormat()"
        noData="..."

        >
    <svg></svg>

the console.log prints

1355000000
1360000000
1365000000
1370000000
1375000000
1380000000
1385000000
1354034656
1385570656
1355000000
1360000000
1365000000
1370000000
1375000000
1380000000
1385000000
1354034656
1385570656

this is not my array?

why?

@ramstein74
Copy link
Author

boy, i think i missed a digit.

A´m i distracted or what?
sorry for the garbage...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant