bar

How to sort bar in nvd3?

匿名 (未验证) 提交于 2019-12-03 08:54:24
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using nvd3 multibar chart in my application. Its working fine. Here i need to sort the bars based on the values(I mean in ascending/descend manner). Is there any inbuilt function available for sorting in nvd3. Or how can I achieve the sorting thing. nv.addGraph(function() { var chart; chart = nv.models.multiBarChart() .margin({bottom: 100}) .transitionDuration(300); chart.options( {delay: 1200}); chart.multibar .hideable(false); chart.xAxis //.axisLabel("Modules") .rotateLabels(45); chart.yAxis .tickFormat(function(d) { return d + "%";

Hide App name and it's bar

匿名 (未验证) 提交于 2019-12-03 08:52:47
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've been trying to remove this bar (cant hotlink images, yet, check next link): http://i.imgur.com/fRvMW.png But I can't achieve it. Tried the following: Added into manifest the following: android:theme="@android:style/Theme.NoActionBar" But resulted as crash. Probably because I don't have this "Theme". I can't find out what should I write here. Also tried to remove manually on each Fragment by Graphical Layout, selecting "No action bar", and it doesn't show up on the "preview" but it's shown in the app, probably because its the wrong place

You can use the navigation bar to switch contex

匿名 (未验证) 提交于 2019-12-03 08:51:18
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: i'm working on ASP.net web site , in one of my forms i added HTML control , while using that control from the code behind file i got wiered error which i can't understand . <table style="width: 100%;" class="table-responsive"> <tr> <td> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <input id="UserName" runat="server" type="text" class="form-control" placeholder="Username" required="required"/> </td> </tr> <tr> codeBehind file : protected void Page_Load(object sender, EventArgs e) { } public void signupData() { string s = UserName

UISearchBar Scope Bar Position?

匿名 (未验证) 提交于 2019-12-03 08:50:26
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am here on an iPad Application and i would like to know if its possible to move the Scope Bar from right to my UISearchBar to another position? I would like to have my Scope Bar under my Search Bar. Is that possible? Thanks in advance. 回答1: Ok this is my solution for that. Ill implemented my own segmented control to create a possibility for a search scope. let categories = ["Scope1", "Scope2", "Scope3"] segmentedControl.addTarget(self, action: "changeScope:", forControlEvents: .ValueChanged) segmentedControl.frame = CGRectMake(8, 5, 800,

object-relational mapping

匿名 (未验证) 提交于 2019-12-03 08:50:26
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I need to store an instance of an complex datatype into a relational database. Is there a way to do this without moddeling the database structure first, like it is done in ado.net? The database (or table) structure should be created from the class structure. The class has some properties like ints, strings or bools but could also have more complex ones. I am grateful for every helping advice... I want to do this in c#... Update: Thank you for your replys. I tried "code first" of EF 4 (Thank you very much Ramesh) and got my objects into the

Flash in Gmail File Upload Progress Bar

匿名 (未验证) 提交于 2019-12-03 08:50:26
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Several resources I have found claim, that GMail File Upload incorporates Flash to display progress bar or to allow multiple file uploads. For example: http://anders.com/cms/290 http://www.neowin.net/news/gmail-enables-multi-attatchment-uploading My question is, it true, that GMail uses Flash to generate upload Progress Bar? If not, how does GMail achieve Progress Bars in IE9, which does not support FileAPI? I did several tests, and I was not able to confirm presence of Flash during GMail File Upload process: I installed FlashBlocker which

accessory bar hiding in ios 9

匿名 (未验证) 提交于 2019-12-03 08:48:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Hi can someone help me out i want to hide the accessory bar from keyboard in ios 9 its working find till ios 8 but in ios 9 i am not able to hide the accessory bar i tired this code but its not working for (UIView *possibleFormView in [keyboardWindow subviews]) { if([[possibleFormView description] hasPrefix:@"<UIInputSetContainerView"]) { for(UIView *view1 in possibleFormView.subviews) { if([[view1 description] hasPrefix:@"<UIInputSetHostView"]) { for (UIView *peripheralView_sub in view1.subviews) { //Hides the backdrop (iOS 8) if ([

Change iOS status bar color in ionic 2 app

匿名 (未验证) 提交于 2019-12-03 08:48:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am following the ionic 2 documentation for setting the iOS status bar color but it is not working. The status bar text is white which means on my white background it is invisible. The code I have put in my app constructor is: StatusBar.overlaysWebView(true); StatusBar.styleDefault(); I have imported StatusBar using: import {StatusBar} from 'ionic-native'; I have also checked that the cordova statusbar plugin is installed. 回答1: You can try like this add this in the config.xml, with the hex value of the color you want to set: <preference

MVC WebApi HttpGet with complex object

匿名 (未验证) 提交于 2019-12-03 08:48:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have an existing WebApi action, that I want to switch from HttpPost to HttpGet. It currently takes a single complex object as parameter. The model: public class BarRequest { [JsonProperty("catid")] public int CategoryId { get; set; } } The controller: public class FooController : ApiController { //[HttpPost] [HttpGet] [ActionName("bar")] public void Bar([FromUri] BarRequest request) { if (request != null) { // CategoryId should be 123, not 0 Debug.WriteLine("Category ID :: {0}", request.CategoryId); } } } Now when I send the following

Unboxing a null boxed object throws unexpected NullPointerException

匿名 (未验证) 提交于 2019-12-03 08:48:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: If you run the following code, public class Foo{ public static void main(String[] args){ int id = new Bar().getId(); // throws unexpected NullPointerException } private static class Bar{ private final Integer id; public Bar(){ this(null); } public Bar(Integer id){ this.id = id; } public Integer getId(){ return id; } } } you will get the following stacktrace, Exception in thread "main" java.lang.NullPointerException at Foo.main(Foo.java:3) How come there's no compiler warning or anything? IMHO it's a pretty nasty subtlety with unboxing, or