Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I've been working with the chart webparts, and was wondering if there is a way to add a timestamp to them. Thanks so much.

share|improve this question
add comment

1 Answer 1

You could probably do this with a little JavaScript and CSS.

Use JavaScript to generate the current time, and to place it in an element on the page somewhere, perhaps using jQuery to make that bit easier (for instance, placing it somewhere adjacent to the chart in the DOM), and position it using CSS absolute positioning to place it over the chart.

If you know C# server side programming you could go a step further and override the ChartWebPart class and add the timestamp at the server side.

share|improve this answer
    
Thank you! One more question: can Javascript access the lastitemmodified date property of the list? That's what I need to be visible. –  user13788 Jan 24 '13 at 20:47
    
You could use SPServices (a jQuery extension, helps you query SharePoint data) to pull out the last modified date - spservices.codeplex.com - you'll need to get the first item of the list that comes back, when sorted by modified date descending (if that makes sense). –  James Love Jan 24 '13 at 20:57
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.